sucrase
Version:
Super-fast alternative to Babel for when you can target modern JS runtimes
10 lines (9 loc) • 312 B
TypeScript
import { InputOptions } from "./options";
import "./tokenizer/context";
import { Token } from "./tokenizer";
import { Scope } from "./tokenizer/state";
export declare type File = {
tokens: Array<Token>;
scopes: Array<Scope>;
};
export declare function parse(input: string, options?: InputOptions): File;