UNPKG

knip

Version:

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

17 lines (16 loc) 759 B
interface GlobOptions { cwd: string; dir?: string; patterns: string[]; gitignore?: boolean; name?: boolean; label?: string; } export declare const prependDirToPattern: (dir: string, pattern: string) => string; export declare const negate: (pattern: string) => string; export declare const hasProductionSuffix: (pattern: string) => boolean; export declare const hasNoProductionSuffix: (pattern: string) => boolean; export declare const _glob: ({ cwd, dir, patterns, gitignore, label }: GlobOptions) => Promise<string[]>; export declare const _firstGlob: ({ cwd, patterns }: GlobOptions) => Promise<string | Buffer | undefined>; export declare const _dirGlob: ({ cwd, patterns, gitignore }: GlobOptions) => Promise<string[]>; export {};