knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
7 lines (6 loc) • 400 B
TypeScript
import ts from 'typescript';
import type { BoundSourceFile } from '../SourceFile.js';
export declare const isNotJS: (sourceFile: BoundSourceFile) => boolean;
export declare const isJS: (sourceFile: BoundSourceFile) => boolean;
export declare const isModule: (sourceFile: BoundSourceFile) => boolean;
export declare function hasImportSpecifier(node: ts.Statement, name: string, id?: string): boolean;