Type alias PromiseDeconstructed<T>

PromiseDeconstructed<T>: {
    p: Promise<T>;
    rejectP: ((reason?: any) => void);
    resolveP: ((value: T | PromiseLike<T>) => void);
}

Deconstructed promise

Type Parameters

  • T

Type declaration

  • p: Promise<T>
  • rejectP: ((reason?: any) => void)
      • (reason?: any): void
      • Parameters

        • Optional reason: any

        Returns void

  • resolveP: ((value: T | PromiseLike<T>) => void)
      • (value: T | PromiseLike<T>): void
      • Parameters

        • value: T | PromiseLike<T>

        Returns void

Generated using TypeDoc