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

Add downleveling of type modifiers on import names (TS 4.5+) #66

Closed
sisp opened this issue Feb 15, 2022 · 0 comments · Fixed by #67
Closed

Add downleveling of type modifiers on import names (TS 4.5+) #66

sisp opened this issue Feb 15, 2022 · 0 comments · Fixed by #67

Comments

@sisp
Copy link
Contributor

sisp commented Feb 15, 2022

TS 4.5 added type modifiers on import names which is a great syntax improvement IMO. To adopt this feature more quickly in a library, declaration files need to be downleveled to a compatible syntax:

  • TS 3.8-4.4: Convert to type-only imports (split an import statement with mixed imports into two)
  • TS 3.7 and below: Removal of the type modifiers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant