How to get typed union of routes? #2805
Unanswered
devinrhode2
asked this question in
Q&A
Replies: 1 comment
-
I just looked around the raw routeTree.gen.ts file and used |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to make a wrapper hook like this:
However, I don't know how to get a typed union of my routes. Doing things like
Parameters<typeof getRouteApi>[0]
just gives meany
Beta Was this translation helpful? Give feedback.
All reactions