How to use the api class ? #1151
Replies: 1 comment
-
The solution was to instanciate the api class and not the client one. |
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
-
Hey,
I successfully generated a interface based on a big swagger.
I have two class : a HttpClient and the ApiClass.
Both can call request() but the query is typed as QueryParamsType which is
type QueryParamsType = Record<string | number, any>;
I can make the call to the api but it's not typed. I saw all the types are well defined in the generated file but I don't get how to use it. I just use the HttpClient class.
What am I missing ?
Thank you,
Yoann
Beta Was this translation helpful? Give feedback.
All reactions