Skip to content

TypeScript: false positive Unused import #126

Closed
@ajafff

Description

@ajafff

In TypeScript it's valid to export an "ImportEqualsDeclaration".

export import stringify = require('./stringify');

// equivalent to
import stringify = require('./stringify');
export {stringify};

Currently this is reported as unused:
https://lgtm.com/projects/g/DefinitelyTyped/DefinitelyTyped/snapshot/d798d9208fc79327a67b16e60b73965d30f01ad7/files/types/iarna__toml/index.d.ts?sort=name&dir=ASC&mode=heatmap&showExcluded=false#x54f532a8afd9f620:1

Metadata

Metadata

Assignees

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