This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
no-unused-vars should understand imported type usage #488
Closed
Description
What version of TypeScript are you using?
2.9.1
What version of typescript-eslint-parser
are you using?
16.0.0
What code were you trying to parse?
import { Application } from 'express';
app().then((server:Application) => {
});
What did you expect to happen?
With rule no-unused-vars
, I expect Application
to come back as being used as it's being imported and used as a type
What happened?
1:10 error 'Application' is defined but never used no-unused-vars