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

Type Parameters

  • T

Properties

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