Skip to content

Commit 6480fba

Browse files
committed
fix: request body type being to specific in some clients
1 parent 54ffb89 commit 6480fba

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/bundle/client/index.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ interface RequestOptions<ThrowOnError extends boolean = boolean, Url extends str
162162
*
163163
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
164164
*/
165-
body?: RequestInit['body'] | Record<string, unknown> | Array<Record<string, unknown>> | Array<unknown> | number;
165+
body?: unknown;
166166
path?: Record<string, unknown>;
167167
query?: Record<string, unknown>;
168168
/**

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/bundle/client/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ interface RequestOptions<ThrowOnError extends boolean = boolean, Url extends str
162162
*
163163
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
164164
*/
165-
body?: RequestInit['body'] | Record<string, unknown> | Array<Record<string, unknown>> | Array<unknown> | number;
165+
body?: unknown;
166166
path?: Record<string, unknown>;
167167
query?: Record<string, unknown>;
168168
/**

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-next/bundle/client/index.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ interface RequestOptions<ThrowOnError extends boolean = boolean, Url extends str
162162
*
163163
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
164164
*/
165-
body?: RequestInit['body'] | Record<string, unknown> | Array<Record<string, unknown>> | Array<unknown> | number;
165+
body?: unknown;
166166
path?: Record<string, unknown>;
167167
query?: Record<string, unknown>;
168168
/**

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-next/bundle/client/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ interface RequestOptions<ThrowOnError extends boolean = boolean, Url extends str
162162
*
163163
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
164164
*/
165-
body?: RequestInit['body'] | Record<string, unknown> | Array<Record<string, unknown>> | Array<unknown> | number;
165+
body?: unknown;
166166
path?: Record<string, unknown>;
167167
query?: Record<string, unknown>;
168168
/**

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/client/index.d.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ interface RequestOptions<TComposable extends Composable = Composable, ResT = unk
136136
*
137137
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
138138
*/
139-
body?: BodyInit | Record<string, any> | null;
139+
body?: unknown;
140140
path?: FetchOptions<unknown>['query'];
141141
query?: FetchOptions<unknown>['query'];
142142
}> {

packages/openapi-ts/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/bundle/client/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ interface RequestOptions<TComposable extends Composable = Composable, ResT = unk
136136
*
137137
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
138138
*/
139-
body?: BodyInit | Record<string, any> | null;
139+
body?: unknown;
140140
path?: FetchOptions<unknown>['query'];
141141
query?: FetchOptions<unknown>['query'];
142142
}> {

0 commit comments

Comments
 (0)