UNPKG

js-slang

Version:

Javascript-based implementations of Source, written in Typescript

9 lines (8 loc) 413 B
import { Program } from 'estree'; import { Context } from '../..'; import { AcornOptions, Parser } from '../types'; export declare class FullTSParser implements Parser<AcornOptions> { parse(programStr: string, context: Context, options?: Partial<AcornOptions>, throwOnError?: boolean): Program | null; validate(_ast: Program, _context: Context, _throwOnError: boolean): boolean; toString(): string; }