UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

9 lines (8 loc) 358 B
import { Token } from "./tokenizer/index"; import { Scope } from "./tokenizer/state"; export declare class File { tokens: Array<Token>; scopes: Array<Scope>; constructor(tokens: Array<Token>, scopes: Array<Scope>); } export declare function parse(input: string, isJSXEnabled: boolean, isTypeScriptEnabled: boolean, isFlowEnabled: boolean): File;