Skip to content

Types: PluginErrorHook()<TRoutes, TRejections>

ts
type PluginErrorHook<TRoutes, TRejections> = (error, context) => void;

Type Parameters

Type ParameterDefault type
TRoutes extends RoutesRoutes
TRejections extends Rejection[]Rejection[]

Parameters

ParameterType
errorunknown
contextPluginErrorHookContext<TRoutes, TRejections>

Returns

void