Home > @cjh1/sfapi > CancelablePromise > catch
Signature:
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
Parameter | Type | Description |
---|---|---|
onRejected | ((reason: any) => TResult | PromiseLike<TResult>) | null | (Optional) |
Returns:
Promise<T | TResult>