UNPKG

knip

Version:

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

10 lines (9 loc) 457 B
import type { ModuleGraph } from '../types/module-graph.js'; import { type TraceNode } from './trace.js'; type Result = { isReferenced: boolean; reExportingEntryFile: undefined | string; traceNode: TraceNode; }; export declare const getIsIdentifierReferencedHandler: (graph: ModuleGraph, entryPaths: Set<string>) => (filePath: string, id: string, isIncludeEntryExports?: boolean, traceNode?: TraceNode, seen?: Set<string>) => Result; export {};