Closed nickyhajal closed 1 year ago
Hi! Thanks for you interest in the project! Adding type safety for the search params of a request is in my Todo list. For now you can't use the library with search parameters, so the workaround is to use a normal fetch...
I will use this issue to track the progress of that feature.
This is now a feature in 3.2.0
.
You can declare a searchParams
z.object in the validation schema and the library will handle the rest!
Thanks for this library! Finding it really helpful so far.
When I am trying to do a GET request, I don't seem to see where I should attach parameters in a typesafe way.
Any suggestions?
Appreciate it!