Skip to content

RouteHookResponse

ts
type RouteHookResponse<TRoutes>: BeforeRouteHookResponse<TRoutes> | AfterRouteHookResponse<TRoutes>;

Union type for all possible route hook responses, covering both before and after scenarios.

Type parameters

Type parameterDescription
TRoutes extends RoutesThe type of the routes configuration.