Options
All
  • Public
  • Public/Protected
  • All
Menu

IPromiseLike represents objects that have a then method complying with the Promises/A+ specification.

Type parameters

  • T

Hierarchy

  • IPromiseLike

Implemented by

Index

Methods

Methods

then

  • then(onFulfilled?: undefined | function, onRejected?: undefined | function): IPromiseLike<any>
  • Attaches callbacks for the resolution and/or rejection of the promise.

    See MDN: Promise.then.

    Parameters

    • Optional onFulfilled: undefined | function

      The callback to execute when the promise is resolved.

    • Optional onRejected: undefined | function

      The callback to execute when the promise is rejected.

    Returns IPromiseLike<any>

    A promise for the completion of which ever callback is executed.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc