Replies: 2 comments 3 replies
-
How about |
Beta Was this translation helpful? Give feedback.
1 reply
-
With
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Such code allows me to get a TypeScript union of available routes (from chosen tree):
export type ExampleRoutes = ParseRoute<typeof exampleTree>['fullPath'];
Static checks, nice!
Is it also possible to get a list of routes that will be usable at runtime?
Let's say I want to iterate through routes or validate them...
Maybe its possible to get a string enum that is usable both in types and values space?
Beta Was this translation helpful? Give feedback.
All reactions