UNPKG

523 BTypeScriptView Raw
1export type DegeneratorName = string | RegExp;
2export type DegeneratorNames = DegeneratorName[];
3/**
4 * Compiles sync JavaScript code into JavaScript with async Functions.
5 *
6 * @param {String} code JavaScript string to convert
7 * @param {Array} names Array of function names to add `await` operators to
8 * @return {String} Converted JavaScript string with async/await injected
9 * @api public
10 */
11export declare function degenerator(code: string, _names: DegeneratorNames): string;
12//# sourceMappingURL=degenerator.d.ts.map
\No newline at end of file