Interface Thenable

Index

Methods

Methods

public then(onFulfilled: (value: R) => Thenable<U>, onRejected: (error: any) => Thenable<U>): Thenable

Parameters

  • onFulfilled: (value: R) => Thenable<U>
  • onRejected: (error: any) => Thenable<U>

Returns

Thenable

public then(onFulfilled: (value: R) => Thenable<U>, onRejected?: (error: any) => U): Thenable

Parameters

  • onFulfilled: (value: R) => Thenable<U>
  • onRejected?: (error: any) => U optional

Returns

Thenable

public then(onFulfilled: (value: R) => U, onRejected: (error: any) => Thenable<U>): Thenable

Parameters

  • onFulfilled: (value: R) => U
  • onRejected: (error: any) => Thenable<U>

Returns

Thenable

public then(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U): Thenable

Parameters

  • onFulfilled?: (value: R) => U optional
  • onRejected?: (error: any) => U optional

Returns

Thenable