UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

5 lines (4 loc) 288 B
import type { Program } from 'estree'; import type { Context } from '..'; import type { AcornOptions } from './types'; export declare function parse<TOptions extends AcornOptions>(programStr: string, context: Context, options?: Partial<TOptions>, throwOnError?: boolean): Program | null;