We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation .
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
Currently .guard.ts files import needed types using normal imports, which results in ts(1371) and ts(1444) errors in my environment (svelte). Making the imports type-only would solve this issue.
.guard.ts
ts(1371)
ts(1444)
The text was updated successfully, but these errors were encountered:
I hadn't heard of this feature. Would this change the minimum TypeScript version?
Sorry, something went wrong.
They were introduced in TypeScript 3.8 . Seems like all that needs to be done to enable them is to add isTypeOnly: true to objects pushed to structures in outFile.addImportDeclarations .
isTypeOnly: true
structures
outFile.addImportDeclarations
Okay cool, I think it's reasonably to upgrade the minimum version to 3.8. Note that this would not always be appropriate due to the way that classes are checked. See discussion in #162 .
Successfully merging a pull request may close this issue.