UNPKG

rolldown

Version:

Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.

6 lines (5 loc) 417 B
import { Program } from '@oxc-project/types'; import type { ParseResult, ParserOptions } from './binding'; export declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program; export declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>; export type { ParseResult, ParserOptions };