UNPKG

knip

Version:

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

15 lines (14 loc) 484 B
import type { ModuleGraph } from '../../types/module-graph.js'; export interface DependencyNode { filePath: string; specifier: string; binaryName: string | undefined; pos: number | undefined; line: number | undefined; col: number | undefined; } export interface DependencyNodes { packageName: string; imports: DependencyNode[]; } export declare const getDependencyUsage: (graph: ModuleGraph, pattern?: string | RegExp) => Map<string, DependencyNodes>;