UNPKG

@stacksjs/dtsx

Version:

A modern, fast .d.ts generation tool, powered by Bun.

11 lines (10 loc) 456 B
import type { Declaration } from '../types'; /** * Extract declarations using the fast string scanner (no TS parser). * Results are cached by file path + keepComments flag. */ export declare function extractDeclarations(sourceCode: string, filePath: string, keepComments?: boolean, isolatedDeclarations?: boolean): Declaration[]; /** * Clear the declaration cache (for benchmarks and testing) */ export declare function clearDeclarationCache(): void;