Exposed promise allow you to create a promise and then resolve it later, from the outside

Type Parameters

  • T = unknown

  • U = unknown

Hierarchy

  • ExposedPromise

Constructors

  • Type Parameters

    • T = unknown

    • U = unknown

    Returns ExposedPromise<T, U>

Properties

_promise: any
_promiseError: any
_promiseResult: any
_reject: any
_resolve: any
_status: any

Accessors

  • get promise(): Promise<T>
  • Returns Promise<T>

  • get promiseError(): undefined | U
  • Returns undefined | U

  • get promiseResult(): undefined | T
  • Returns undefined | T

  • get reject(): Reject<U>
  • Returns Reject<U>

  • get resolve(): Resolve<T>
  • Returns Resolve<T>

Methods

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Type Parameters

    • T = never

    • U = unknown

    Parameters

    • Optional reason: U

    Returns ExposedPromise<T, U>

  • Type Parameters

    • T

    Parameters

    • value: T

    Returns ExposedPromise<T, unknown>

Generated using TypeDoc