Type Alias: BeforeErrorHook
BeforeErrorHook = (
error) =>ValifetchError|Promise<ValifetchError>
Defined in: src/types/hooks.ts:61
Hook called just before a ValifetchError is thrown to the caller. Must return the error to throw — the same instance (optionally mutated) or a replacement ValifetchError.
Parameters
error
Returns
ValifetchError | Promise<ValifetchError>