Skip to content

Commit a309fc7

Browse files
committed
fix(client): update Axios header types
1 parent 599e5b6 commit a309fc7

File tree

29 files changed

+61
-28
lines changed

29 files changed

+61
-28
lines changed

.changeset/khaki-candles-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix(client): update Axios headers types

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/3.0.x/content-types/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/3.0.x/parameter-explode-false-axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/client/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type {
22
AxiosError,
33
AxiosInstance,
4+
AxiosRequestHeaders,
45
AxiosResponse,
56
AxiosStatic,
67
CreateAxiosDefaults,
@@ -33,7 +34,7 @@ export interface Config<T extends ClientOptions = ClientOptions>
3334
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
3435
*/
3536
headers?:
36-
| CreateAxiosDefaults['headers']
37+
| AxiosRequestHeaders
3738
| Record<
3839
string,
3940
| string

0 commit comments

Comments
 (0)