fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2331 from hey-api/fix/axios-client-types

fix(client): update Axios header types

authored by

Lubos and committed by
GitHub
0c5f6903 599e5b6f

+61 -28
+5
.changeset/khaki-candles-obey.md
··· 1 + --- 2 + '@hey-api/openapi-ts': patch 3 + --- 4 + 5 + fix(client): update Axios headers types
+2 -1
packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/content-types/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/parameter-explode-false-axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/content-types/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/parameter-explode-false-axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts-tests/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/client/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string
+2 -1
packages/openapi-ts/src/plugins/@hey-api/client-axios/bundle/types.ts
··· 1 1 import type { 2 2 AxiosError, 3 3 AxiosInstance, 4 + AxiosRequestHeaders, 4 5 AxiosResponse, 5 6 AxiosStatic, 6 7 CreateAxiosDefaults, ··· 33 34 * {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more} 34 35 */ 35 36 headers?: 36 - | CreateAxiosDefaults['headers'] 37 + | AxiosRequestHeaders 37 38 | Record< 38 39 string, 39 40 | string