Home > @cjh1/sfapi > CancelablePromise > then
Signature:
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
Parameter | Type | Description |
---|---|---|
onFulfilled | ((value: T) => TResult1 | PromiseLike<TResult1>) | null | (Optional) |
onRejected | ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | (Optional) |
Returns:
Promise<TResult1 | TResult2>