Represents a deferred promise, exposing the resolve and reject methods.

Type Parameters

  • T

Hierarchy

  • DeferredPromise

Properties

Properties

reject: ((reason) => void)

Type declaration

    • (reason): void
    • Method to reject the promise.

      Parameters

      • reason: unknown

        the rejection reason.

      Returns void

resolve: ((value) => void)

Type declaration

    • (value): void
    • Method to resolve the promise.

      Parameters

      • value: T | PromiseLike<T>

        the resolution value.

      Returns void

Generated using TypeDoc