-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
semantic: imported type is used but a warning message appears #5435
Labels
Comments
Thank you for the feedback! |
Boshen
changed the title
The imported type is used but a warning message appears
semantic: imported type is used but a warning message appears
Sep 4, 2024
Boshen
pushed a commit
that referenced
this issue
Sep 5, 2024
…not reference type-only import binding (#5441) close: #5435 The behavior of `IdentifierReference` in `TSPropertySignature` is the same as in `TSTypeQuery`, both allow only reference value bindings and type-only import bindings. I still use `ReferenceFlags::TSTypeQuery` here because I want to avoid producing many changes unrelated to the bug in this PR. I will refactor it in the follow-up PR soon
So efficient! 👍 |
Boshen
pushed a commit
that referenced
this issue
Sep 6, 2024
…SPropertySignature` (#5525) close: #5435 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you import a type and then use this type as the key of an interface, a warning message will appear saying that this type is not used and it is recommended to remove it.
The sample code is as follows:
I created a repro link with the above code, and you can see the warning message when you open it.
The text was updated successfully, but these errors were encountered: