UNPKG

knip

Version:

Find unused files, dependencies and exports in your TypeScript and JavaScript projects

8 lines (7 loc) 380 B
type FileExtension = string; export type SyncCompilerFn = (source: string, path: string) => string; export type AsyncCompilerFn = (source: string, path: string) => Promise<string>; export type SyncCompilers = Map<FileExtension, SyncCompilerFn>; export type AsyncCompilers = Map<FileExtension, AsyncCompilerFn>; export type HasDependency = (pkgName: string) => boolean; export {};