Typesafe enum query param in RPC client? #2475
branislav-brincko
started this conversation in
General
Replies: 2 comments 3 replies
-
This is not a bug but rather an unimplemented one. It can be a feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could still have it in your types by using |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my backend:
And this is my frontend:
Is there a way how to make "order" on the frontend inferred not as string | string[] but as a "asc" | "desc"? (In other words, how to make typescript check if I passed the correct value?)
Beta Was this translation helpful? Give feedback.
All reactions