UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

7 lines (6 loc) 245 B
export type PromiseWithResolvers<type> = { promise: Promise<type>; resolve: (value: type | PromiseLike<type>) => void; reject: (reason?: unknown) => void; }; export declare function withResolvers<type>(): PromiseWithResolvers<type>;