knip
Version:
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
21 lines (20 loc) • 793 B
TypeScript
import type { DependencyGraph } from '../types/dependency-graph.js';
declare const isTrace: boolean;
type CreateNode = {
identifier?: string;
hasRef?: boolean;
isEntry?: boolean;
};
type Create = (filePath: string, options?: CreateNode) => TraceNode;
export type TraceNode = {
filePath: string;
identifier?: string;
hasRef: boolean;
isEntry: boolean;
children: Set<TraceNode>;
};
export { isTrace };
export declare const printTrace: (node: TraceNode, filePath: string, identifier?: string) => void;
export declare const createNode: Create;
export declare const addNodes: (node: TraceNode, id: string, importedSymbols: DependencyGraph, filePaths?: Set<string>) => void;
export declare const createAndPrintTrace: (filePath: string, options?: CreateNode) => void;