Skip to content

Type imports are incorrectly reported as unused #1225

@tylerlaprade

Description

@tylerlaprade
import type bar from 'bar';
type foo = (typeof bar)[number];

results in
use of undeclared variable: barquick-lint-js[E0057](https://quick-lint-js.com/errors/E0057/)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions