rolldown
Version:
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
9 lines (8 loc) • 546 B
text/typescript
import { ParseResult, ParserOptions } from "./shared/binding-D__94uwg.cjs";
import { Program } from "@oxc-project/types";
//#region src/parse-ast-index.d.ts
// The api compat to rollup `parseAst` and `parseAstAsync`.
declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
//#endregion
export { ParseResult, ParserOptions, parseAst, parseAstAsync };