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

Simplify visitNode's 'lift' argument #42000

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Conversation

rbuckton
Copy link
Member

Simplifies the argument to the lift callback of visitNode.

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Dec 17, 2020
@RyanCavanaugh RyanCavanaugh added the Breaking Change Would introduce errors in existing code label Dec 17, 2020
@RyanCavanaugh
Copy link
Member

We should probably document this as an API breaking change with the caveat that we were calling it with the supertype the whole time anyway

@rbuckton
Copy link
Member Author

True, its "breaking" because its type-incompatible if anyone used NodeArray in their signature, but anyone who depended on the NodeArray-ness would have been broken anyways, so at least its still runtime-compatible with any custom transforms.

@rbuckton rbuckton merged commit 2a736a8 into master Dec 17, 2020
@rbuckton rbuckton deleted the nodeVisitorLiftArgument branch December 17, 2020 20:44
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 4.2.0 milestone Jan 12, 2021
@IvanPizhenko
Copy link

what a PR number!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team Breaking Change Would introduce errors in existing code For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants