-
Notifications
You must be signed in to change notification settings - Fork 712
Port "Add support for import defer
proposal"
#1826
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= <[email protected]>
Co-authored-by: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= <[email protected]>
get isTypeOnly(): boolean | undefined { | ||
switch (this.kind) { | ||
case SyntaxKind.ImportSpecifier: | ||
case SyntaxKind.ImportClause: |
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.
Should this defer to phaseModifier
in some way?
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.
I have added that at first but then concluded this should closely match up the defined AST shape and ImportClause
doesn't have IsTypeOnly
property anymore (in Strada it's deprecated). It could be handled here for convenience though. I'll defer (hehe) the decision to you and @andrewbranch
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.
That's true, though that should come with an update to the ast
package as well.
e17d915
to
fa0d37d
Compare
ports microsoft/TypeScript#60757
ports microsoft/TypeScript#61837