UNPKG

knip

Version:

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

7 lines (6 loc) 599 B
import type { CompilerOptions } from 'typescript'; import type { ConfigurationChief, Workspace } from '../ConfigurationChief.js'; export declare const augmentWorkspace: (workspace: Workspace, dir: string, compilerOptions: CompilerOptions) => void; export declare const getToSourcePathHandler: (chief: ConfigurationChief) => (filePath: string) => string | undefined; export declare const getToSourcePathsHandler: (chief: ConfigurationChief) => (specifiers: Set<string>, cwd: string, extensions?: string) => Promise<string[]>; export type ToSourceFilePath = ReturnType<typeof getToSourcePathHandler>;