mono/packages/osrl/liquidjs/util/async.d.ts
2025-12-30 16:33:03 +01:00

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;