You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type-only import (which are elided in the output file) is really useful when writing argument types. However, we sometimes mistakenly use imported variables as the real expression, which sometimes causes circular dependency errors.
If we have an explicit keyword for that kind of imports, it will help reduce the errors.
Is there any feature to achieve this scenario?
The text was updated successfully, but these errors were encountered:
I'd like to suggest an explicit keyword for type-only import. e.g.
Suggestion
Related:
https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-imports-being-elided-in-my-emit
Purpose
The type-only import (which are elided in the output file) is really useful when writing argument types. However, we sometimes mistakenly use imported variables as the real expression, which sometimes causes circular dependency errors.
If we have an explicit keyword for that kind of imports, it will help reduce the errors.
Is there any feature to achieve this scenario?
The text was updated successfully, but these errors were encountered: