UNPKG

rolldown

Version:

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

8 lines (7 loc) 482 B
import { F as ParserOptions, P as ParseResult } from "./shared/binding-S7w0fEEX.mjs"; import { Program } from "@oxc-project/types"; //#region src/parse-ast-index.d.ts declare function parseAst(sourceText: string, options?: ParserOptions | null, filename?: string): Program; declare function parseAstAsync(sourceText: string, options?: ParserOptions | null, filename?: string): Promise<Program>; //#endregion export { type ParseResult, type ParserOptions, parseAst, parseAstAsync };