knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
7 lines (6 loc) • 642 B
TypeScript
import type { CompilerOptions } from '../types/project.ts';
import type { ConfigurationChief, Workspace } from '../ConfigurationChief.ts';
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>;