Optional
onrejected: null | ((reason: any) => MaybePromise<TResult>)Equivalent of Promise.finally.
Optional
onfinally: null | (() => MaybePromise<void>)Determine whether a MaybePromiseLike is a Promise.
Chained MaybePromise. Invokes the resolve function immediately if the MaybePromise is not a Promise, otherwise the same as a normal Promise.then.
Optional
resolve: null | ((input: I) => MaybePromise<O1>)Optional
reject: null | ((error: any) => MaybePromise<O2>)
Equivalent of Promise.catch.