pzavolinsky / ts-unused-exports

ts-unused-exports finds unused exported symbols in your Typescript project
MIT License
749 stars 49 forks source link

Add support for export statements #23

Closed arnauorriols closed 6 years ago

arnauorriols commented 6 years ago

The current implementation asumes all export declarations are used only for reexporting things from other modules (export-from-import). Export declarations are also used to export things declared in the same module. This pattern is called Export Statements.

This PR adds support for export-statements, so that they are not ignored by ts-unused-exports.

Feel free to rewrite everything to your taste.

pzavolinsky commented 6 years ago

Hi @arnauorriols thanks for this contrib. It's merged and published as 2.0.9.

Cheers!