Skip to content

BeforeRouteHookResponse

ts
type BeforeRouteHookResponse<TRoutes>: RouteHookSuccessResponse | RouteHookPushResponse<TRoutes> | RouteHookRejectResponse | RouteHookAbortResponse;

Type for responses from a before route hook, which may indicate different outcomes such as success, push, reject, or abort.

Type parameters

Type parameterDescription
TRoutes extends RoutesThe type of the routes configuration.