UNPKG

knip

Version:

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

16 lines (15 loc) 759 B
import ts from 'typescript'; import type { TemplateAstNode, VueSfc } from './types.ts'; export declare const getVueSfc: (cwd: string) => VueSfc; export declare const createSourceFile: (filePath: string, contents?: string) => ts.SourceFile; export declare const collectIdentifiers: (source: string, fileName: string) => Set<string>; export declare const collectTemplateInfo: (tree: TemplateAstNode) => { tags: Set<string>; identifiers: Set<string>; }; export declare const toKebabCase: (s: string) => string; export declare const collectLocalImportPaths: (sourceFile: ts.SourceFile) => Set<string>; export declare function buildAutoImportMap(sourceFile: ts.SourceFile): { importMap: Map<string, string>; componentMap: Map<string, string[]>; };