Skip to content
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
@Snugug

Description

@Snugug

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions