-
Hello, I am using the axios client. I need to generate something like this: export const getAllUsers = (
headers?: Record<string, string>,
): CancelablePromise<getAllUsersResponse> => {
return __request(OpenAPI, {
method: "GET",
url: "/api/v1/users",
headers: headers,
});
}; Is there a way to modify the generator configuration to automatically add a Thanks in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Turns out I was using the legacy axios client, switching to the new one |
Beta Was this translation helpful? Give feedback.
Turns out I was using the legacy axios client, switching to the new one
@hey-api/client-axios
fixed my issue.