UNPKG

knip

Version:

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

17 lines (16 loc) 565 B
import type { ReExportKind } from '../../session/types.js'; import type { Export, Identifier, ModuleGraph } from '../../types/module-graph.js'; interface TraversalStep { filePath: string; identifier: string; via: ReExportKind; } export interface DefinitionResult { type: 'symbol' | 'namespace'; filePath: string; identifier: string; exportNode: Export | undefined; chain: TraversalStep[]; } export declare const resolveDefinition: (graph: ModuleGraph, filePath: string, identifier: Identifier) => DefinitionResult | null; export {};