UNPKG

knip

Version:

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

10 lines (9 loc) 688 B
export declare const isDirectory: (filePath: string) => boolean; export declare const isFile: (filePath: string) => boolean; export declare const findFile: (workingDir: string, fileName: string) => string | undefined; export declare const loadFile: (filePath: string) => Promise<string>; export declare const loadJSON: (filePath: string) => Promise<any>; export declare const loadYAML: (filePath: string) => Promise<unknown>; export declare const loadTOML: (filePath: string) => Promise<Record<string, import("smol-toml").TomlPrimitive>>; export declare const parseJSON: (filePath: string, contents: string) => Promise<any>; export declare const parseYAML: (contents: string) => unknown;