Appearance
type RouteHook = | BeforeRouteHook | AfterRouteHook;
Generic type representing a route hook, which can be either before or after a route change.