knip
Version:
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
7 lines (6 loc) • 590 B
TypeScript
import type { DependencyGraph, FileNode, IdToFileMap, IdToNsToFileMap, ImportDetails, ImportMap } from '../types/dependency-graph.js';
export declare const getOrCreateFileNode: (graph: DependencyGraph, filePath: string) => FileNode;
export declare const updateImportMap: (file: FileNode, importMap: ImportMap, graph: DependencyGraph) => void;
export declare const createImports: () => ImportDetails;
export declare const addValue: (map: IdToFileMap, id: string, value: string) => void;
export declare const addNsValue: (map: IdToNsToFileMap, id: string, ns: string, value: string) => void;