Skip to content

Commit 961eade

Browse files
Copilotmrlubos
andcommitted
Update test snapshots to remove RequestBody type definitions
Co-authored-by: mrlubos <[email protected]>
1 parent 98d5e35 commit 961eade

File tree

24 files changed

+12
-180
lines changed

24 files changed

+12
-180
lines changed

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/body-response-text-plain/client/client.gen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getValidRequestBody } from '../core/utils.gen';
66
import type {
77
Client,
88
Config,
9-
RequestBody,
109
RequestOptions,
1110
ResolvedRequestOptions,
1211
} from './types.gen';
@@ -223,7 +222,7 @@ export const createClient = (config: Config = {}): Client => {
223222
const { opts, url } = await beforeRequest(options);
224223
return createSseClient({
225224
...opts,
226-
body: opts.body as RequestBody,
225+
body: opts.body as any,
227226
headers: opts.headers as unknown as Record<string, string>,
228227
method,
229228
onRequest: async (url, init) => {

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/body-response-text-plain/client/types.gen.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ import type {
1111
} from '../core/types.gen';
1212
import type { Middleware } from './utils.gen';
1313

14-
/**
15-
* Compatible body type for requests that doesn't depend on DOM types.
16-
* Equivalent to the standard BodyInit type but without DOM-specific types
17-
* like Blob, FormData, or ReadableStream that require DOM lib in TypeScript.
18-
*/
19-
export type RequestBody =
20-
| string
21-
| ArrayBuffer
22-
| ArrayBufferView
23-
| URLSearchParams
24-
| null
25-
| undefined;
26-
2714
export type ResponseStyle = 'data' | 'fields';
2815

2916
export interface Config<T extends ClientOptions = ClientOptions>

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/form-data/client/client.gen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getValidRequestBody } from '../core/utils.gen';
66
import type {
77
Client,
88
Config,
9-
RequestBody,
109
RequestOptions,
1110
ResolvedRequestOptions,
1211
} from './types.gen';
@@ -223,7 +222,7 @@ export const createClient = (config: Config = {}): Client => {
223222
const { opts, url } = await beforeRequest(options);
224223
return createSseClient({
225224
...opts,
226-
body: opts.body as RequestBody,
225+
body: opts.body as any,
227226
headers: opts.headers as unknown as Record<string, string>,
228227
method,
229228
onRequest: async (url, init) => {

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/form-data/client/types.gen.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ import type {
1111
} from '../core/types.gen';
1212
import type { Middleware } from './utils.gen';
1313

14-
/**
15-
* Compatible body type for requests that doesn't depend on DOM types.
16-
* Equivalent to the standard BodyInit type but without DOM-specific types
17-
* like Blob, FormData, or ReadableStream that require DOM lib in TypeScript.
18-
*/
19-
export type RequestBody =
20-
| string
21-
| ArrayBuffer
22-
| ArrayBufferView
23-
| URLSearchParams
24-
| null
25-
| undefined;
26-
2714
export type ResponseStyle = 'data' | 'fields';
2815

2916
export interface Config<T extends ClientOptions = ClientOptions>

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/schema-unknown/client/client.gen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getValidRequestBody } from '../core/utils.gen';
66
import type {
77
Client,
88
Config,
9-
RequestBody,
109
RequestOptions,
1110
ResolvedRequestOptions,
1211
} from './types.gen';
@@ -223,7 +222,7 @@ export const createClient = (config: Config = {}): Client => {
223222
const { opts, url } = await beforeRequest(options);
224223
return createSseClient({
225224
...opts,
226-
body: opts.body as RequestBody,
225+
body: opts.body as any,
227226
headers: opts.headers as unknown as Record<string, string>,
228227
method,
229228
onRequest: async (url, init) => {

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/schema-unknown/client/types.gen.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ import type {
1111
} from '../core/types.gen';
1212
import type { Middleware } from './utils.gen';
1313

14-
/**
15-
* Compatible body type for requests that doesn't depend on DOM types.
16-
* Equivalent to the standard BodyInit type but without DOM-specific types
17-
* like Blob, FormData, or ReadableStream that require DOM lib in TypeScript.
18-
*/
19-
export type RequestBody =
20-
| string
21-
| ArrayBuffer
22-
| ArrayBufferView
23-
| URLSearchParams
24-
| null
25-
| undefined;
26-
2714
export type ResponseStyle = 'data' | 'fields';
2815

2916
export interface Config<T extends ClientOptions = ClientOptions>

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-api-key/client/client.gen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getValidRequestBody } from '../core/utils.gen';
66
import type {
77
Client,
88
Config,
9-
RequestBody,
109
RequestOptions,
1110
ResolvedRequestOptions,
1211
} from './types.gen';
@@ -223,7 +222,7 @@ export const createClient = (config: Config = {}): Client => {
223222
const { opts, url } = await beforeRequest(options);
224223
return createSseClient({
225224
...opts,
226-
body: opts.body as RequestBody,
225+
body: opts.body as any,
227226
headers: opts.headers as unknown as Record<string, string>,
228227
method,
229228
onRequest: async (url, init) => {

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-api-key/client/types.gen.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ import type {
1111
} from '../core/types.gen';
1212
import type { Middleware } from './utils.gen';
1313

14-
/**
15-
* Compatible body type for requests that doesn't depend on DOM types.
16-
* Equivalent to the standard BodyInit type but without DOM-specific types
17-
* like Blob, FormData, or ReadableStream that require DOM lib in TypeScript.
18-
*/
19-
export type RequestBody =
20-
| string
21-
| ArrayBuffer
22-
| ArrayBufferView
23-
| URLSearchParams
24-
| null
25-
| undefined;
26-
2714
export type ResponseStyle = 'data' | 'fields';
2815

2916
export interface Config<T extends ClientOptions = ClientOptions>

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-basic/client/client.gen.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { getValidRequestBody } from '../core/utils.gen';
66
import type {
77
Client,
88
Config,
9-
RequestBody,
109
RequestOptions,
1110
ResolvedRequestOptions,
1211
} from './types.gen';
@@ -223,7 +222,7 @@ export const createClient = (config: Config = {}): Client => {
223222
const { opts, url } = await beforeRequest(options);
224223
return createSseClient({
225224
...opts,
226-
body: opts.body as RequestBody,
225+
body: opts.body as any,
227226
headers: opts.headers as unknown as Record<string, string>,
228227
method,
229228
onRequest: async (url, init) => {

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-basic/client/types.gen.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ import type {
1111
} from '../core/types.gen';
1212
import type { Middleware } from './utils.gen';
1313

14-
/**
15-
* Compatible body type for requests that doesn't depend on DOM types.
16-
* Equivalent to the standard BodyInit type but without DOM-specific types
17-
* like Blob, FormData, or ReadableStream that require DOM lib in TypeScript.
18-
*/
19-
export type RequestBody =
20-
| string
21-
| ArrayBuffer
22-
| ArrayBufferView
23-
| URLSearchParams
24-
| null
25-
| undefined;
26-
2714
export type ResponseStyle = 'data' | 'fields';
2815

2916
export interface Config<T extends ClientOptions = ClientOptions>

0 commit comments

Comments
 (0)