Type alias PromiseDeconstructed<T>

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

Deconstructed promise

Type Parameters

  • T

Type declaration

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

        • Optional reason: any

        Returns void

  • resolveP: ((value) => void)
      • (value): void
      • Parameters

        • value: T | PromiseLike<T>

        Returns void

Generated using TypeDoc