Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a Promise-like object.

Type parameters

  • T

Hierarchy

Implemented by

Index

Methods

Methods

then

  • then<U>(onFulfilled: function, onRejected: function): Thenable<U>
  • then<U>(onFulfilled: function, onRejected?: function): Thenable<U>
  • then<U>(onFulfilled: function, onRejected: function): Thenable<U>
  • then<U>(onFulfilled?: function, onRejected?: function): Thenable<U>
  • Type parameters

    • U

    Parameters

    • onFulfilled: function
    • onRejected: function

    Returns Thenable<U>

  • Type parameters

    • U

    Parameters

    • onFulfilled: function
    • Optional onRejected: function
        • (error: any): U
        • Parameters

          • error: any

          Returns U

    Returns Thenable<U>

  • Type parameters

    • U

    Parameters

    • onFulfilled: function
        • (value: T): U
        • Parameters

          • value: T

          Returns U

    • onRejected: function

    Returns Thenable<U>

  • Type parameters

    • U

    Parameters

    • Optional onFulfilled: function
        • (value: T): U
        • Parameters

          • value: T

          Returns U

    • Optional onRejected: function
        • (error: any): U
        • Parameters

          • error: any

          Returns U

    Returns Thenable<U>