4 lines
242 B
TypeScript
4 lines
242 B
TypeScript
export declare function toPromise<T>(val: Generator<unknown, T, unknown> | Promise<T> | T): Promise<T>;
|
|
export declare function toValueSync<T>(val: Generator<unknown, T, unknown> | T): T;
|
|
export declare const toThenable: typeof toPromise;
|