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
TypeScript: reserve unknown
as TSUnknownKeyword
#8755
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9151/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a breaking change?
Previously, the babel parser will treat EDIT: This only affects type annotation, and it won't affect normal JS code. |
Any progress? |
/cc: @JamesHenry @babel/typescript |
Doesn't look like a breaking, apart if people use their own |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for the TS team to approve and merge
@g-plane thanks! |
unknown
is reserved as a keyword since TypeScript 3.0, so I add it. The AST node name isTSUnknownKeyword
.