Interface Promise

Index

Methods

Methods

public catch(onRejected?: (reason: any) => When.Promise<U>): Promise

Parameters

  • onRejected?: (reason: any) => When.Promise<U> optional

Returns

Promise

public catch(onRejected?: (reason: any) => U): Promise

Parameters

  • onRejected?: (reason: any) => U optional

Returns

Promise

public ensure(onFulfilledOrRejected: Function): Promise

Parameters

  • onFulfilledOrRejected: Function

Returns

Promise

public inspect(): Snapshot

Returns

Snapshot

public otherwise(onRejected?: (reason: any) => When.Promise<U>): Promise

Parameters

  • onRejected?: (reason: any) => When.Promise<U> optional

Returns

Promise

public otherwise(onRejected?: (reason: any) => U): Promise

Parameters

  • onRejected?: (reason: any) => U optional

Returns

Promise

public then(onFulfilled: (value: T) => When.Promise<U>, onRejected?: (reason: any) => When.Promise<U>, onProgress?: (update: any) => void): Promise

Parameters

  • onFulfilled: (value: T) => When.Promise<U>
  • onRejected?: (reason: any) => When.Promise<U> optional
  • onProgress?: (update: any) => void optional

Returns

Promise

public then(onFulfilled: (value: T) => When.Promise<U>, onRejected?: (reason: any) => U, onProgress?: (update: any) => void): Promise

Parameters

  • onFulfilled: (value: T) => When.Promise<U>
  • onRejected?: (reason: any) => U optional
  • onProgress?: (update: any) => void optional

Returns

Promise

public then(onFulfilled: (value: T) => U, onRejected?: (reason: any) => When.Promise<U>, onProgress?: (update: any) => void): Promise

Parameters

  • onFulfilled: (value: T) => U
  • onRejected?: (reason: any) => When.Promise<U> optional
  • onProgress?: (update: any) => void optional

Returns

Promise

public then(onFulfilled: (value: T) => U, onRejected?: (reason: any) => U, onProgress?: (update: any) => void): Promise

Parameters

  • onFulfilled: (value: T) => U
  • onRejected?: (reason: any) => U optional
  • onProgress?: (update: any) => void optional

Returns

Promise