knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
7 lines (6 loc) • 633 B
TypeScript
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 getModuleSourcePathHandler: (chief: ConfigurationChief) => (filePath: string) => string | undefined;
export declare const getToSourcePathsHandler: (chief: ConfigurationChief) => (specifiers: Set<string>, dir: string, extensions: string | undefined, label: string) => Promise<string[]>;
export type ToSourceFilePath = ReturnType<typeof getModuleSourcePathHandler>;