knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
6 lines (5 loc) • 313 B
TypeScript
import type { Identifier, ModuleGraph } from '../../types/module-graph.ts';
export declare const isReferenced: (graph: ModuleGraph, entryPaths: Set<string>, filePath: string, id: Identifier, options: {
traverseEntries: boolean;
treatStarAtEntryAsReferenced?: boolean;
}) => [boolean, string | undefined];