Interface PromiseWithResolvers<T>

    interface PromiseWithResolvers<T> {
        promise: Promise<T>;
        reject: (reason?: any) => void;
        resolve: (value: T | PromiseLike<T>) => void;
    }

    Type Parameters

    • T

    Properties

    promise: Promise<T>
    reject: (reason?: any) => void
    resolve: (value: T | PromiseLike<T>) => void