-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Add TSClassImplements|TSInterfaceHeritage
and rename TsExpressionWithTypeArguments
in Babel 8
#16731
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57969 |
741bdfe
to
cdab11e
Compare
packages/babel-parser/src/types.ts
Outdated
// TS uses "heritageClauses", but want this to resemble ClassBase. | ||
extends?: TsExpressionWithTypeArguments[]; | ||
extends?: TSClassImplements[]; |
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.
There is something wrong here.
a7c8aef
to
4de73b6
Compare
TSClassImplements
and rename TsExpressionWithTypeArguments
in Babel 8TSClassImplements|TSInterfaceHeritage
and rename TsExpressionWithTypeArguments
in Babel 8
Although this adds a new AST in Babel 7, this won't be available until Babel 8, so we can probably merge it in a patch release. |
Co-authored-by: Nicolò Ribaudo <[email protected]>
This reverts commit d09d988.
cf9c127
to
da08dab
Compare
da08dab
to
6d2cf58
Compare
I changed this PR to only expose it in |
This is an AST breaking change, it should not have been merged without a docs PR. @liuxingbaoyu Could you open a docs PR? |
Since just renaming the AST in Babel 8 would require changing more of the test suite, I've added it in Babel 7 as well.