knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
11 lines (10 loc) • 1.06 kB
TypeScript
import type { ModuleGraph } from '../types/module-graph.js';
import type { UsageResult } from './operations/get-usage.js';
import type { DefinitionResult } from './operations/resolve-definition.js';
export declare const invalidateCache: (graph: ModuleGraph) => void;
export declare const getCachedDefinition: (graph: ModuleGraph, filePath: string, identifier: string) => DefinitionResult | null | undefined;
export declare const setCachedDefinition: (graph: ModuleGraph, filePath: string, identifier: string, result: DefinitionResult | null) => void;
export declare const getCachedUsage: (graph: ModuleGraph, filePath: string, identifier: string) => UsageResult | undefined;
export declare const setCachedUsage: (graph: ModuleGraph, filePath: string, identifier: string, result: UsageResult) => void;
export declare const getCachedExportedIdentifiers: (graph: ModuleGraph, filePath: string) => Map<string, boolean> | undefined;
export declare const setCachedExportedIdentifiers: (graph: ModuleGraph, filePath: string, result: Map<string, boolean>) => void;