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
@babel/parser(ts): Add parsing of type import #9302
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9735/ |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9725/ |
build failed due to timeout |
@armano2 restarted! |
@existentialism you guys have to fix developing on windows, this is killing me xd finally its finished xd |
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.
looks good? I can do a generator pr after
Before we merge we should have the changes for generator ready. |
Thanks for following up on my PR 🙏 |
@danez Going to make a PR tomorrow! |
This PR is continuation of work done in #8798 by @Kovensky few months ago.
This PR adds new node
TSImportType
.Comparing to how TS parses this there is one difference
in typescript is represented by
ImportType[typeof=true]
this implementation will parse it into:
TSTypeQuery[exprName='TSImportType']
i can easily change that if you think it will be better.