Replies: 2 comments 5 replies
-
converting to discussion as this is not an issue with zodios. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Using Zodios, it seems really hard to avoid needing object literals defined and duplicated all over one's code base. The purpose of utility functions and custom builders are to centralize and simplify. I haven't found any satisfying way of doing this with Zodios. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to create an helper function that create the endpoint because the api are all similar;
Like this method :
zodios/src/api.ts
Lines 237 to 240 in 9c6686d
Here what I made, it's just a simpler version but even this one I can't make it work properly.
The method do works but the typedefinition is messedup.
And when I try to use it with :
For the first one I get a perfect valid typescript definition but for the helper method I get :
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions