-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
@import
s marked as unused
#58969
Labels
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
Comments
Oh, I didn't look at PR comments. I think this still needs an issue though: #57207 (comment) |
RyanCavanaugh
added
the
Needs Investigation
This issue needs a team member to investigate its status.
label
Jun 24, 2024
jaydenseric
added a commit
to jaydenseric/graphql-react
that referenced
this issue
Jul 12, 2024
See: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#the-jsdoc-import-tag Note that the JSDoc type imports have to be before the real module imports to workaround this TypeScript bug where sometimes the type imports are falsely considered unused: microsoft/TypeScript#58368 (comment) microsoft/TypeScript#58969
Duplicate of #58368. (though there are more thumbs-ups here, and the issue title is less broad) |
jaydenseric
added a commit
to jaydenseric/graphql-upload
that referenced
this issue
Oct 4, 2024
See: https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#the-jsdoc-import-tag Note that the JSDoc type imports have to be before the real module imports to workaround this TypeScript bug where sometimes the type imports are falsely considered unused: microsoft/TypeScript#58368 (comment) microsoft/TypeScript#58969
jaydenseric
added a commit
to jaydenseric/find-unused-exports
that referenced
this issue
Oct 10, 2024
While issues have not yet been discovered in this project, JSDoc type imports have to be before the real module imports to workaround this TypeScript bug where sometimes the type imports are falsely considered unused: microsoft/TypeScript#58368 (comment) microsoft/TypeScript#58969
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Search Terms
@import noUnused
π Version & Regression Information
@import
β― Playground Link
No response
π» Code
This requires multiple files, so the TS playground won't work. Sorry.
With this in the TSConfig
π Actual behavior
Foo is marked as unused.
It's being used in a JSDoc
π Expected behavior
It shouldn't be marked as unused.
Additional information about the issue
This doesn't appear all the time, usually when there's multiple imports.
The example doesn't actually error, the code erroring got force-pushed away. However, it's the general issue.
I thought it might need a type qualifier, but that doesn't seem to be valid.
The text was updated successfully, but these errors were encountered: