UNPKG

ts-unused-exports

Version:

ts-unused-exports finds unused exported symbols in your Typescript project

56 lines (55 loc) 1.35 kB
export interface Imports { [index: string]: string[]; } export interface File { path: string; fullPath: string; imports: Imports; exports: string[]; exportLocations: LocationInFile[]; } export interface LocationInFile { /** 1-based. */ line: number; character: number; } interface ExportNameAndLocation { exportName: string; location: LocationInFile; } interface AnalysisExports { [index: string]: ExportNameAndLocation[]; } interface AnalysisUnusedFiles { unusedFiles?: string[]; } export declare type Analysis = { unusedExports: AnalysisExports; } & AnalysisUnusedFiles; export interface TsConfigPaths { [glob: string]: string[]; } export interface TsConfig { baseUrl: string; paths?: TsConfigPaths; files: string[]; } export interface ExtraCommandLineOptions { allowUnusedEnums?: boolean; allowUnusedTypes?: boolean; excludeDeclarationFiles?: boolean; exitWithCount?: boolean; exitWithUnusedTypesCount?: boolean; ignoreFilesRegex?: string[]; ignoreLocallyUsed?: boolean; maxIssues?: number; pathsToExcludeFromReport?: string[]; searchNamespaces?: boolean; showLineNumber?: boolean; silent?: boolean; findCompletelyUnusedFiles?: boolean; } export interface ExtraOptionsForPresentation { baseUrl?: string; } export {};