UNPKG

knip

Version:

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

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