pzavolinsky / ts-unused-exports

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

Default exports are seemingly not marked as used #22

Closed shepmaster closed 6 years ago

shepmaster commented 6 years ago

versions.ts

export default function versions(state = DEFAULT, action: Action) { /* ... */ }

index.ts

import versions, { State as VersionsState } from './versions';

export interface State {
  // ~snip~
  versions: VersionsState;
}

const playgroundApp = combineReducers({
  // ~snip~
  versions,
});

export default playgroundApp;
pzavolinsky commented 6 years ago

Hi @shepmaster thanks for reporting this. The issue was with default named functions and it's fixed in 2.0.8.

Cheers!