@stacksjs/dtsx
Version:
A modern, fast .d.ts generation tool, powered by Bun.
18 lines (17 loc) • 926 B
TypeScript
import type { Declaration } from '../types';
/**
* Select the declaration scanner explicitly from the configured generation mode.
* Kept for backwards compatibility with callers that pass a boolean mode flag.
*/
export declare function scanDeclarations(_source: string, _filename: string, _keepComments?: boolean, _isolatedDeclarations?: boolean): Declaration[];
/**
* Scan an isolated-declarations source file.
*
* Explicit annotations are authoritative in this mode, so initializer values are
* skipped instead of being parsed or used to narrow the public declaration type.
*/
export declare function scanIsolatedDeclarations(source: string, filename: string, keepComments?: boolean): Declaration[];
/**
* Scan a regular TypeScript source file and retain values needed by type inference.
*/
export declare function scanSemanticDeclarations(source: string, filename: string, keepComments?: boolean): Declaration[];