Type Alias RejectedPromiseHandler<T>

RejectedPromiseHandler<T>: ((reason: any) => T | IPromise<T> | PromiseLike<T>) | undefined | null

This defines the handler function for when a promise is rejected.

Type Parameters

  • T = never

This is the value passed as part of resolving the Promise

This may return a value, another Promise or void.

IPromise.then for how the value is handled.