-
|
I want to be able to reference the available paths for type-safety in something else. So the type would look like: type AllRoutes = `/` | `/profile` | `/projects`As the full validated urls with Any help would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
bgriffith
Nov 5, 2025
Replies: 1 comment 1 reply
-
|
Is this what you're after? import type { FileRoutesByFullPath } from "@/routeTree.gen"
type AllRoutes = keyof FileRoutesByFullPath |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mirshko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this what you're after?