UNPKG

242 BTypeScriptView Raw
1export declare function toPromise<T>(val: Generator<unknown, T, unknown> | Promise<T> | T): Promise<T>;
2export declare function toValueSync<T>(val: Generator<unknown, T, unknown> | T): T;
3export declare const toThenable: typeof toPromise;