GT2/Ejectable/node_modules/sucrase/dist/parser/index.d.ts

9 lines
368 B
TypeScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
import type { Token } from "./tokenizer/index";
import type { 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;