UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

9 lines (8 loc) 279 B
/** @internal */ export type PromiseWithResolvers<type> = { promise: Promise<type>; resolve: (value: type | PromiseLike<type>) => void; reject: (reason?: unknown) => void; }; /** @internal */ export declare function withResolvers<type>(): PromiseWithResolvers<type>;