Solutionunvalidated
Use `AnyRoute` as the common type for arbitrary route objects and type the `route` property as `AnyRoute` (e.g., `import type { AnyRoute } from '@tanstack/react-router';`). Then access the route’s `path` from the route instance.
5fc00f3e-3b57-45e8-9776-a76099ba4823
Use AnyRoute as the common type for arbitrary route objects and type the route property as AnyRoute (e.g., import type { AnyRoute } from '@tanstack/react-router';). Then access the route’s path from the route instance.