UNPKG

@kform/react

Version:

React integration for KForm.

13 lines (12 loc) 483 B
/** * Function that re-throws the provided {@link caughtError} argument, unless it * is an instance of {@link PromiseCancellationException}. * * This is useful in scenarios where cancellations are expected and, as such, * shouldn't be regarded as errors. * * @param caughtError Caught error. * @throws {caughtError} When not an instance of * {@link PromiseCancellationException}. */ export declare function ignorePromiseCancellationException(caughtError: unknown): void;