-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Unused Variables When Used As Typings #25
Comments
@JamesHenry I'm still getting this issue with v1.1.1 |
can you provide example of code? |
Here's a simple repo setup to reproduce: https://gist.github.com/Chris911/69305fa1697683b90f578e9d9244fdec In the example |
yes, that's true, this is different issue #21, |
Ah ok. Thanks I'll follow that issue. |
This issue was initially reported here: eslint/typescript-eslint-parser#599
I'm still new to TypeScript so apologizes if I misunderstood this issue.
What version of TypeScript are you using?
3.2.2
What version of
typescript-eslint-parser
are you using?21.0.2
What code were you trying to parse?
From: https://github.com/fastify/fastify/blob/master/docs/TypeScript.md#example
What did you expect to happen?
No errors relating unused variables.
What happened?
It complains that
Server, IncomingMessage, ServerResponse
are all unused but technically they are used when defining theserver
variable.The text was updated successfully, but these errors were encountered: