mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 22:21:32 +08:00
12 lines
523 B
TypeScript
12 lines
523 B
TypeScript
export type DegeneratorName = string | RegExp;
|
|
export type DegeneratorNames = DegeneratorName[];
|
|
/**
|
|
* Compiles sync JavaScript code into JavaScript with async Functions.
|
|
*
|
|
* @param {String} code JavaScript string to convert
|
|
* @param {Array} names Array of function names to add `await` operators to
|
|
* @return {String} Converted JavaScript string with async/await injected
|
|
* @api public
|
|
*/
|
|
export declare function degenerator(code: string, _names: DegeneratorNames): string;
|
|
//# sourceMappingURL=degenerator.d.ts.map
|