Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 Pick PR #61244 (Ban old-style type assertions under...) into release-5.8 #61320

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

typescript-bot
Copy link
Collaborator

This cherry-pick was triggered by a request on #61244.

Please review the diff and merge if no changes are unexpected.

Comment on lines +37315 to +37316
const start = node.type.pos - "<".length;
const end = skipTrivia(file.text, node.type.end) + ">".length;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have just used skipTrivia(file.text, node.pos) and expression.pos

@DanielRosenwasser DanielRosenwasser merged commit fca87f2 into release-5.8 Mar 19, 2025
31 checks passed
@DanielRosenwasser DanielRosenwasser deleted the cherry-pick/61244/release-5.8 branch March 19, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants