UNPKG

knip

Version:

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

5 lines (4 loc) 468 B
import type { ImportDetails, ModuleGraph } from '../types/module-graph.js'; export declare const hasStrictlyEnumReferences: (importsForExport: ImportDetails | undefined, id: string) => boolean; export declare const hasStrictlyNsReferences: (graph: ModuleGraph, importsForExport: ImportDetails | undefined, id: string) => [boolean, string?]; export declare const getType: (hasOnlyNsReference: boolean, isType: boolean) => "exports" | "types" | "nsExports" | "nsTypes";