DeferredOut<T>: {
    promise: Promise<T>;
    reject: ((reason?) => void);
    resolve: ((value) => void);
}

Represents a deferred promise, which exposes the resolve and reject functions.

Type Parameters

  • T

    The type of the value that the promise resolves to.

Type declaration

  • promise: Promise<T>
  • reject: ((reason?) => void)
      • (reason?): void
      • Parameters

        • Optional reason: any

        Returns void

  • resolve: ((value) => void)