Is there an easy way to override the schemaType (@kubb/swagger-tanstack-query) #1113
Unanswered
raidenmiro
asked this question in
Q&A
Replies: 1 comment
-
I don't know why you need to specify method in here, do you send request by |
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 use to use this plugin to generate hooks. It uses a custom client inside. There is a separate template for it. The thing is that in addition to overriding the queryOptions template, I need to correct the types for the hooks. Is there an easier way to replace schemeType?
This version is generated
Expected version:
+ type FindPetsByStatusClient = typeof client.get<FindPetsByStatusQueryResponse, FindPetsByStatus400, never> type FindPetsByStatus = { data: FindPetsByStatusQueryResponse error: FindPetsByStatus400 request: never pathParams: never queryParams: FindPetsByStatusQueryParams headerParams: never response: FindPetsByStatusQueryResponse client: { parameters: Partial<Parameters<FindPetsByStatusClient>[0]> return: Awaited<ReturnType<FindPetsByStatusClient>> } }
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions