UNPKG

knip

Version:

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

14 lines (13 loc) 1.11 kB
import type { ParseResult, Program } from 'oxc-parser'; export declare const getPropertyKey: (prop: any) => string | undefined; export declare const getImportMap: (program: Program) => Map<string, string>; export declare const getDefaultImportName: (importMap: Map<string, string>, specifier: string) => string | undefined; export declare const getPropertyValues: (node: any, propertyName: string) => Set<string>; export declare const collectPropertyValues: (program: Program, propertyName: string) => Set<string>; export declare const resolveObjectArg: (arg: any) => any | undefined; export declare const findCallArg: (program: Program, fnName: string) => any | undefined; export declare const findProperty: (node: any, name: string) => any | undefined; export declare const getStringValues: (node: any) => Set<string>; export declare const isExternalReExportsOnly: (result: ParseResult) => boolean; export declare const hasImportSpecifier: (program: Program, modulePath: string, specifierName: string) => boolean; export declare const collectStringLiterals: (sourceText: string, filePath: string) => Set<string>;