UNPKG

225 BTypeScriptView Raw
1export interface PromiseWithResolvers<T> {
2 promise: Promise<T>;
3 resolve: (value: T | PromiseLike<T>) => void;
4 reject: (reason: any) => void;
5}
6export declare function createDeferred<T>(): PromiseWithResolvers<T>;