UNPKG

@ts-ast-parser/core

Version:

Reflects a simplified version of the TypeScript AST for generating documentation

12 lines 570 B
import type { AnalyserOptions } from './analyser-options.js'; import type { AnalyserResult } from './analyser-result.js'; /** * Reflects a simplified version of the TypeScript Abstract * Syntax Tree from a TypeScript code snippet * * @param source - A string that represents the TypeScript source code * @param options - Options to configure the analyzer * @returns The reflected TypeScript AST */ export declare function parseFromSource(source: string, options?: Partial<AnalyserOptions>): Promise<AnalyserResult>; //# sourceMappingURL=parse-from-source.d.ts.map