Skip to content

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 ​

ValifetchError

Returns ​

ValifetchError | Promise<ValifetchError>

Released under the MIT License. Built with Claude Code.