Closed SamyZog closed 3 days ago
Types are generated in a certain structure when using the fetch client instead of axios
{ data, status }, is there a way to return it as only data
example
export type userRigsListResponse = { data: PaginatedRigListUserListDTO; status: number; };
…
Please execute npx envinfo --system --npmPackages orval,zod,axios,msw,swr,@tanstack/react-query,@tanstack/vue-query,react,vue and paste the results here.
npx envinfo --system --npmPackages orval,zod,axios,msw,swr,@tanstack/react-query,@tanstack/vue-query,react,vue
Yes see this answer for 7.2.0: https://gurubase.io/g/orval/orval-fetch-client-return-only-data
On 7.3.0 its includeHttpResponseReturnType
includeHttpResponseReturnType
Thank you!
What are the steps to reproduce this issue?
Types are generated in a certain structure when using the fetch client instead of axios
{ data, status }, is there a way to return it as only data
example
What happens?
…
What were you expecting to happen?
…
Any logs, error output, etc?
…
Any other comments?
…
What versions are you using?
Please execute
npx envinfo --system --npmPackages orval,zod,axios,msw,swr,@tanstack/react-query,@tanstack/vue-query,react,vue
and paste the results here.