Options
All
  • Public
  • Public/Protected
  • All
Menu

Interoperability interface for modeling the results of PromiseUtilities.settle. This is a match for BlueBird's PromiseInspection object.

Type parameters

  • T

Hierarchy

  • SettleInspection

Index

Methods

isFulfilled

  • isFulfilled(): boolean
  • Checks if the underlying promise was fulfilled at the creation time of this inspection object.

    Returns boolean

isPending

  • isPending(): boolean
  • Checks if the underlying promise was deferred at the creation time of this inspection object.

    Returns boolean

isRejected

  • isRejected(): boolean
  • Checks if the underlying promise was rejected at the creation time of this inspection object.

    Returns boolean

reason

  • reason(): any
  • Gets the rejection reason for the underlying promise. Throws TypeError if the promise wasn't rejected at the creation time of this inspection object.

    throws

    TypeError

    Returns any

value

  • value(): T
  • Gets the fulfillment value of the underlying promise. Throws TypeError if the promise wasn't fulfilled at the creation time of this inspection object.

    throws

    TypeError

    Returns T