Interface IPromise<T>

interface IPromise<T> {
    promise: Promise<T>;
    reject(reason?: string): void;
    resolve(value: T): void;
}

Type Parameters

  • T

Implemented by

Properties

Methods

Properties

promise: Promise<T>

Methods