Type Guards: isRoute
ts
const isRoute: RouterAssets<RegisteredRouter>["isRoute"];A guard to verify if a route or unknown value matches a given route name.
Param
routeName
The name of the route to check against the current route.
Returns
True if the current route matches the given route name, false otherwise.