UNPKG

sucrase

Version:

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

15 lines (14 loc) 441 B
export declare type Options = { sourceFilename?: string; startLine: number; allowReturnOutsideFunction: boolean; allowSuperOutsideMethod: boolean; plugins: ReadonlyArray<string>; ranges: boolean; tokens: boolean; }; export declare type InputOptions = { [O in keyof Options]?: Options[O]; }; export declare const defaultOptions: Options; export declare function getOptions(opts: InputOptions | null): Options;