UNPKG

190 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;