-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
🐛 noUnusedVariables
misreporting imports used for type definitions
#104
Comments
Actually you have to mark a type-only import either as |
Actually, this caused by the use of a parameter name identical to the type name. See a simpler example in the playground. EDIT: See also rome#4660 |
correct, just confirmed on my side too |
Which is all class declarations. |
I don't understand what you mean. |
Classes create a concrete symbol and a type with the same name. And therefore a construct like |
You are right. However, it is not related to the current issue. |
It is, because biome sees |
Environment information
What happened?
see code example. imports sometimes are useful for type references, shouldn't be throwing an error here.
Expected result
should let me use the import as a type only
Code of Conduct
The text was updated successfully, but these errors were encountered: