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

chore: preserve types order

Lubos ac638b78 7ea9c19b

Changed files
+1579 -1554
dev
examples
openapi-ts-angular
src
client
openapi-ts-angular-common
src
client
openapi-ts-axios
src
client
openapi-ts-fastify
src
client
openapi-ts-fetch
src
client
openapi-ts-ky
src
client
openapi-ts-next
src
client
openapi-ts-ofetch
src
client
openapi-ts-openai
src
client
openapi-ts-pinia-colada
src
client
openapi-ts-tanstack-angular-query-experimental
src
client
openapi-ts-tanstack-react-query
src
client
openapi-ts-tanstack-svelte-query
src
client
openapi-ts-tanstack-vue-query
src
client
packages
codegen-core
src
openapi-ts
src
plugins
@hey-api
typescript
shared
utils
openapi-ts-tests
main
test
__snapshots__
2.0.x
additional-properties-false
additional-properties-true
body-response-text-plain
enum-names-values
enum-names-values-javascript-PascalCase
enum-names-values-javascript-SCREAMING_SNAKE_CASE
enum-names-values-javascript-camelCase
enum-names-values-javascript-preserve
enum-names-values-javascript-snake_case
enum-names-values-typescript-PascalCase
enum-names-values-typescript-SCREAMING_SNAKE_CASE
enum-names-values-typescript-camelCase
enum-names-values-typescript-const
enum-names-values-typescript-preserve
enum-names-values-typescript-snake_case
exclude-deprecated
external
form-data
plugins
@angular
common
default
default-class
@hey-api
client-fetch
sdk-nested-classes
sdk-nested-classes-instance
sdk
default
instance
throwOnError
transformers
type-format-valibot
type-format-zod
typescript
transforms-read-write-custom-name
transforms-read-write-ignore
@pinia
colada
asClass
fetch
@tanstack
angular-query-experimental
asClass
axios
fetch
name-builder
react-query
asClass
axios
fetch
name-builder
solid-query
asClass
axios
fetch
name-builder
svelte-query
asClass
axios
fetch
name-builder
vue-query
asClass
axios
fetch
name-builder
fastify
default
schema-unknown
security-api-key
security-basic
security-false
security-oauth2
servers
servers-base-path
servers-host
transforms-read-write
3.0.x
additional-properties-false
additional-properties-true
additional-properties-undefined
array-items-one-of-length-1
array-nested-one-of
body-response-text-plain
case-PascalCase
case-camelCase
case-preserve
case-snake_case
components-request-bodies
content-binary
content-types
discriminator-all-of
discriminator-any-of
discriminator-mapped-many
discriminator-one-of
enum-escape
enum-inline
enum-inline-javascript
enum-inline-typescript
enum-names-values
enum-names-values-javascript-PascalCase
enum-names-values-javascript-SCREAMING_SNAKE_CASE
enum-names-values-javascript-camelCase
enum-names-values-javascript-ignore-null
enum-names-values-javascript-preserve
enum-names-values-javascript-snake_case
enum-names-values-typescript-PascalCase
enum-names-values-typescript-SCREAMING_SNAKE_CASE
enum-names-values-typescript-camelCase
enum-names-values-typescript-const
enum-names-values-typescript-preserve
enum-names-values-typescript-snake_case
enum-null
exclude-deprecated
external
internal-name-conflict
operation-204
parameter-explode-false
parameter-explode-false-axios
plugins
@angular
common
default
default-class
@hey-api
client-fetch
sdk-nested-classes
sdk-nested-classes-instance
sdk
default
instance
throwOnError
transformers
type-format-valibot
type-format-zod
typescript
transforms-read-write-custom-name
transforms-read-write-ignore
@pinia
colada
asClass
fetch
@tanstack
angular-query-experimental
asClass
axios
fetch
name-builder
react-query
asClass
axios
fetch
name-builder
solid-query
asClass
axios
fetch
name-builder
svelte-query
asClass
axios
fetch
name-builder
vue-query
asClass
axios
fetch
name-builder
fastify
default
security-api-key
security-false
security-http-bearer
security-oauth2
security-open-id-connect
servers
transformers-all-of
transformers-any-of-null
transformers-array
transformers-recursive
transforms-properties-required-by-default
transforms-read-write
type-invalid
3.1.x
additional-properties-false
additional-properties-true
additional-properties-true-any
additional-properties-undefined
array-items-one-of-length-1
array-nested-one-of
body-response-text-plain
case-PascalCase
case-camelCase
case-preserve
case-snake_case
clients
@hey-api
client-angular
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-axios
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-fetch
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-ky
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-next
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-nuxt
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-ofetch
base-url-false
base-url-number
base-url-strict
base-url-string
clean-false
default
import-file-extension-ts
sdk-client-optional
sdk-client-required
tsconfig-nodenext-sdk
client-custom
base-url-false
base-url-number
base-url-strict
base-url-string
bundle
default
sdk-client-optional
sdk-client-required
my-client
base-url-false
base-url-number
base-url-strict
base-url-string
bundle
default
sdk-client-optional
sdk-client-required
components-request-bodies
const
content-binary
content-types
discriminator-all-of
discriminator-any-of
discriminator-mapped-many
discriminator-one-of
duplicate-null
enum-escape
enum-inline
enum-inline-javascript
enum-inline-typescript
enum-names-values
enum-names-values-javascript-PascalCase
enum-names-values-javascript-SCREAMING_SNAKE_CASE
enum-names-values-javascript-camelCase
enum-names-values-javascript-ignore-null
enum-names-values-javascript-preserve
enum-names-values-javascript-snake_case
enum-names-values-typescript-PascalCase
enum-names-values-typescript-SCREAMING_SNAKE_CASE
enum-names-values-typescript-camelCase
enum-names-values-typescript-const
enum-names-values-typescript-preserve
enum-names-values-typescript-snake_case
enum-null
exclude-deprecated
external
headers
internal-name-conflict
negative-property-names
object-properties-all-of
object-properties-any-of
object-properties-one-of
object-property-names
operation-204
pagination-ref
parameter-explode-false
parameter-explode-false-axios
parameter-tuple
pattern-properties
plugins
@angular
common
default
default-class
@hey-api
client-fetch
sdk-nested-classes
sdk-nested-classes-instance
sdk
default
instance
throwOnError
transformers
type-format-valibot
type-format-zod
typescript
transforms-read-write-custom-name
transforms-read-write-ignore
@pinia
colada
asClass
fetch
@tanstack
angular-query-experimental
asClass
axios
fetch
name-builder
react-query
asClass
axios
fetch
name-builder
solid-query
asClass
axios
fetch
name-builder
svelte-query
asClass
axios
fetch
name-builder
vue-query
asClass
axios
fetch
name-builder
fastify
default
ref-type
required-all-of-ref
required-any-of-ref
required-one-of-ref
schema-const
security-api-key
security-false
security-http-bearer
security-oauth2
security-open-id-connect
servers
sse-angular
sse-axios
sse-fetch
sse-next
sse-nuxt
sse-ofetch
string-with-format
transformers-all-of
transformers-any-of-null
transformers-array
transformers-recursive
transforms-read-write
transforms-read-write-nested
transforms-read-write-response
type-invalid
union-types
webhooks
plugins
@tanstack
sdks
__snapshots__
method-class-conflict
class
flat
instance
opencode
flat
grouped
+1 -1
dev/openapi-ts.config.ts
··· 46 46 // 'openai.yaml', 47 47 'opencode.yaml', 48 48 // 'pagination-ref.yaml', 49 - 'sdk-instance.yaml', 49 + // 'sdk-instance.yaml', 50 50 // 'string-with-format.yaml', 51 51 // 'transformers.json', 52 52 // 'transformers-recursive.json',
+4 -4
examples/openapi-ts-angular-common/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-angular/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-axios/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseURL: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-fastify/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://petstore.swagger.io/v1' | (string & {}); 5 + }; 6 + 3 7 export type Pet = { 4 8 id: number; 5 9 name: string; ··· 96 100 97 101 export type ShowPetByIdResponse = 98 102 ShowPetByIdResponses[keyof ShowPetByIdResponses]; 99 - 100 - export type ClientOptions = { 101 - baseUrl: 'http://petstore.swagger.io/v1' | (string & {}); 102 - };
+4 -4
examples/openapi-ts-fetch/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-ky/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-next/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-ofetch/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+20 -20
examples/openapi-ts-openai/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://api.openai.com/v1' | (string & {}); 5 + }; 6 + 7 + export type Webhooks = 8 + | PostBatchCancelledWebhookRequest 9 + | PostBatchCompletedWebhookRequest 10 + | PostBatchExpiredWebhookRequest 11 + | PostBatchFailedWebhookRequest 12 + | PostEvalRunCanceledWebhookRequest 13 + | PostEvalRunFailedWebhookRequest 14 + | PostEvalRunSucceededWebhookRequest 15 + | PostFineTuningJobCancelledWebhookRequest 16 + | PostFineTuningJobFailedWebhookRequest 17 + | PostFineTuningJobSucceededWebhookRequest 18 + | PostResponseCancelledWebhookRequest 19 + | PostResponseCompletedWebhookRequest 20 + | PostResponseFailedWebhookRequest 21 + | PostResponseIncompleteWebhookRequest; 22 + 3 23 export type AddUploadPartRequest = { 4 24 /** 5 25 * The chunk of bytes for this Part. ··· 23453 23473 path?: never; 23454 23474 query?: never; 23455 23475 }; 23456 - 23457 - export type ClientOptions = { 23458 - baseUrl: 'https://api.openai.com/v1' | (string & {}); 23459 - }; 23460 - 23461 - export type Webhooks = 23462 - | PostBatchCancelledWebhookRequest 23463 - | PostBatchCompletedWebhookRequest 23464 - | PostBatchExpiredWebhookRequest 23465 - | PostBatchFailedWebhookRequest 23466 - | PostEvalRunCanceledWebhookRequest 23467 - | PostEvalRunFailedWebhookRequest 23468 - | PostEvalRunSucceededWebhookRequest 23469 - | PostFineTuningJobCancelledWebhookRequest 23470 - | PostFineTuningJobFailedWebhookRequest 23471 - | PostFineTuningJobSucceededWebhookRequest 23472 - | PostResponseCancelledWebhookRequest 23473 - | PostResponseCompletedWebhookRequest 23474 - | PostResponseFailedWebhookRequest 23475 - | PostResponseIncompleteWebhookRequest;
+4 -4
examples/openapi-ts-pinia-colada/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}) 5 + } 6 + 3 7 export type Order = { 4 8 complete?: boolean 5 9 id?: number ··· 687 691 */ 688 692 200: unknown 689 693 } 690 - 691 - export type ClientOptions = { 692 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}) 693 - }
+4 -4
examples/openapi-ts-tanstack-angular-query-experimental/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-tanstack-react-query/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-tanstack-svelte-query/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 5 + }; 6 + 3 7 export type Order = { 4 8 complete?: boolean; 5 9 id?: number; ··· 693 697 */ 694 698 200: unknown; 695 699 }; 696 - 697 - export type ClientOptions = { 698 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}); 699 - };
+4 -4
examples/openapi-ts-tanstack-vue-query/src/client/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}) 5 + } 6 + 3 7 export type Order = { 4 8 complete?: boolean 5 9 id?: number ··· 687 691 */ 688 692 200: unknown 689 693 } 690 - 691 - export type ClientOptions = { 692 - baseUrl: 'https://petstore3.swagger.io/api/v3' | (string & {}) 693 - }
+1 -1
packages/codegen-core/src/files/file.ts
··· 141 141 * Syntax nodes contained in this file. 142 142 */ 143 143 get nodes(): ReadonlyArray<INode> { 144 - return this._nodes; 144 + return [...this._nodes]; 145 145 } 146 146 147 147 /**
+15 -13
packages/codegen-core/src/nodes/registry.ts
··· 1 + import { fromRef, ref } from '../refs/refs'; 2 + import type { Ref } from '../refs/types'; 1 3 import type { INode } from './node'; 2 4 import type { INodeRegistry } from './types'; 3 5 4 6 export class NodeRegistry implements INodeRegistry { 5 - private brands: Map<string, Array<INode>> = new Map(); 6 - private list: Array<INode> = []; 7 + private list: Array<Ref<INode | null>> = []; 7 8 8 - add(node: INode): void { 9 - this.list.push(node); 9 + add(node: INode | null): number { 10 + const index = this.list.push(ref(node)); 11 + return index - 1; 12 + } 10 13 11 - let group = this.brands.get(node['~brand']); 12 - if (!group) { 13 - group = []; 14 - this.brands.set(node['~brand'], group); 14 + *all(): Iterable<INode> { 15 + for (const r of this.list) { 16 + const node = fromRef(r); 17 + if (node) yield node; 15 18 } 16 - group.push(node); 17 19 } 18 20 19 - all(): ReadonlyArray<INode> { 20 - return this.list; 21 + remove(index: number): void { 22 + this.list[index] = ref(null); 21 23 } 22 24 23 - byBrand(brand: string): ReadonlyArray<INode> { 24 - return this.brands.get(brand) ?? []; 25 + update(index: number, node: INode | null): void { 26 + this.list[index] = ref(node); 25 27 } 26 28 }
+15 -4
packages/codegen-core/src/nodes/types.d.ts
··· 3 3 export interface INodeRegistry { 4 4 /** 5 5 * Register a syntax node. 6 + * 7 + * @returns The index of the registered node. 6 8 */ 7 - add(node: INode): void; 9 + add(node: INode | null): number; 8 10 /** 9 11 * All nodes in insertion order. 10 12 */ 11 - all(): ReadonlyArray<INode>; 13 + all(): Iterable<INode>; 14 + /** 15 + * Remove a node by its index. 16 + * 17 + * @param index Index of the node to remove. 18 + */ 19 + remove(index: number): void; 12 20 /** 13 - * Nodes by backend brand, so planner doesn't need to filter repeatedly. 21 + * Update a node at the given index. 22 + * 23 + * @param index Index of the node to update. 24 + * @param node New node to set. 14 25 */ 15 - byBrand(brand: string): ReadonlyArray<INode>; 26 + update(index: number, node: INode | null): void; 16 27 }
+1 -1
packages/codegen-core/src/planner/analyzer.ts
··· 98 98 } 99 99 100 100 analyze( 101 - nodes: ReadonlyArray<INode>, 101 + nodes: Iterable<INode>, 102 102 callback?: (ctx: AnalysisContext, node: INode) => void, 103 103 ): void { 104 104 for (const node of nodes) {
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/additional-properties-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 }; ··· 9 13 export type Baz = Foo & { 10 14 bar: string; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: string; 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/additional-properties-true/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 [key: string]: unknown | string; ··· 17 21 export type Qux = { 18 22 [key: string]: unknown; 19 23 }; 20 - 21 - export type ClientOptions = { 22 - baseUrl: string; 23 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/body-response-text-plain/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body: string; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: string; 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-javascript-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export const _110 = { 110: '1-10', 1120: '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 40 44 } as const; 41 45 42 46 export type Arrays = typeof Arrays[keyof typeof Arrays]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: string; 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-javascript-SCREAMING_SNAKE_CASE/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export const _110 = { '1_10': '1-10', '11_20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 40 44 } as const; 41 45 42 46 export type Arrays = typeof Arrays[keyof typeof Arrays]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: string; 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-javascript-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export const _110 = { 110: '1-10', 1120: '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 40 44 } as const; 41 45 42 46 export type Arrays = typeof Arrays[keyof typeof Arrays]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: string; 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-javascript-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export const _110 = { '1-10': '1-10', '11-20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 40 44 } as const; 41 45 42 46 export type Arrays = typeof Arrays[keyof typeof Arrays]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: string; 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-javascript-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export const _110 = { '1_10': '1-10', '11_20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 40 44 } as const; 41 45 42 46 export type Arrays = typeof Arrays[keyof typeof Arrays]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: string; 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-typescript-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: string; 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-typescript-SCREAMING_SNAKE_CASE/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export enum _110 { 4 8 '1_10' = '1-10', 5 9 '11_20' = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: string; 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-typescript-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: string; 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-typescript-const/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export const enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: string; 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-typescript-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export enum _110 { 4 8 '1-10' = '1-10', 5 9 '11-20' = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: string; 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values-typescript-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export enum _110 { 4 8 '1_10' = '1-10', 5 9 '11_20' = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: string; 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/enum-names-values/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type _110 = '1-10' | '11-20'; 4 8 5 9 export type MyFoo = 'myFoo' | 'myBar'; ··· 17 21 ] | [ 18 22 'baz' 19 23 ]; 20 - 21 - export type ClientOptions = { 22 - baseUrl: string; 23 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/exclude-deprecated/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type Foo = string; 4 8 5 9 export type PostFooData = { ··· 15 19 */ 16 20 200: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseUrl: string; 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/external/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type ExternalSchemaA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalSchemaB = ExternalSharedExternalSharedModel; ··· 405 409 }; 406 410 407 411 export type GetExternalPropertiesByIdResponse = GetExternalPropertiesByIdResponses[keyof GetExternalPropertiesByIdResponses]; 408 - 409 - export type ClientOptions = { 410 - baseUrl: string; 411 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/form-data/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type Foo = { 4 8 status?: number; 5 9 }; ··· 22 26 }; 23 27 24 28 export type PostV1FooResponse = PostV1FooResponses[keyof PostV1FooResponses]; 25 - 26 - export type ClientOptions = { 27 - baseUrl: string; 28 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@angular/common/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://api.example.com/v1' | (string & {}); 5 + }; 6 + 3 7 export type BusinessProvidersDomainsGetData = { 4 8 body?: never; 5 9 path?: never; ··· 79 83 }; 80 84 81 85 export type GetResponse = GetResponses[keyof GetResponses]; 82 - 83 - export type ClientOptions = { 84 - baseUrl: 'https://api.example.com/v1' | (string & {}); 85 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://api.example.com/v1' | (string & {}); 5 + }; 6 + 3 7 export type BusinessProvidersDomainsGetData = { 4 8 body?: never; 5 9 path?: never; ··· 79 83 }; 80 84 81 85 export type GetResponse = GetResponses[keyof GetResponses]; 82 - 83 - export type ClientOptions = { 84 - baseUrl: 'https://api.example.com/v1' | (string & {}); 85 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-valibot/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type TypeID<T extends string> = `${T}_${string}`; 4 8 5 9 export type UserId = TypeID<'user'>; ··· 30 34 }; 31 35 32 36 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 33 - 34 - export type ClientOptions = { 35 - baseUrl: string; 36 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-zod/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type TypeID<T extends string> = `${T}_${string}`; 4 8 5 9 export type UserId = TypeID<'user'>; ··· 30 34 }; 31 35 32 36 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 33 - 34 - export type ClientOptions = { 35 - baseUrl: string; 36 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type Baz = { 4 8 baz?: string; 5 9 }; ··· 55 59 }; 56 60 57 61 export type PostFooReadResponse = PostFooReadResponses[keyof PostFooReadResponses]; 58 - 59 - export type ClientOptions = { 60 - baseUrl: string; 61 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/typescript/transforms-read-write-ignore/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type FooRead = BarRead & { 4 8 readonly foo?: string; 5 9 }; ··· 43 47 }; 44 48 45 49 export type PostFooReadResponse = PostFooReadResponses[keyof PostFooReadResponses]; 46 - 47 - export type ClientOptions = { 48 - baseUrl: string; 49 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseURL: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseURL: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseURL: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseURL: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/svelte-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseURL: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/vue-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: string; 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/fastify/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 export type ExternalRefA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalRefB = ExternalSharedExternalSharedModel; ··· 1182 1186 }; 1183 1187 1184 1188 export type PostApiVbyApiVersionBodyResponse = PostApiVbyApiVersionBodyResponses[keyof PostApiVbyApiVersionBodyResponses]; 1185 - 1186 - export type ClientOptions = { 1187 - baseUrl: 'http://localhost:3000/base' | (string & {}); 1188 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/schema-unknown/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://api.postmarkapp.com` | (string & {}); 5 + }; 6 + 3 7 export type SendEmailRequest = { 4 8 /** 5 9 * The sender email address. Must have a registered and confirmed Sender Signature. ··· 130 134 }; 131 135 132 136 export type SendEmailResponse2 = SendEmailResponses[keyof SendEmailResponses]; 133 - 134 - export type ClientOptions = { 135 - baseUrl: `${string}://api.postmarkapp.com` | (string & {}); 136 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-api-key/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: string; 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-basic/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: string; 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: string; 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/security-oauth2/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: string; 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/servers-base-path/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}/v1` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}/v1` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/servers-host/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://foo.com` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://foo.com` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/servers/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://foo.com/v1' | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: 'https://foo.com/v1' | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/transforms-read-write/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: string; 5 + }; 6 + 3 7 export type FooRead = BarRead & { 4 8 readonly foo?: string; 5 9 }; ··· 55 59 }; 56 60 57 61 export type PostFooReadResponse = PostFooReadResponses[keyof PostFooReadResponses]; 58 - 59 - export type ClientOptions = { 60 - baseUrl: string; 61 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/additional-properties-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 }; ··· 9 13 export type Baz = Foo & { 10 14 bar: string; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: `${string}://${string}` | (string & {}); 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/additional-properties-true/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 [key: string]: unknown | string; ··· 17 21 export type Qux = { 18 22 [key: string]: unknown; 19 23 }; 20 - 21 - export type ClientOptions = { 22 - baseUrl: `${string}://${string}` | (string & {}); 23 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/additional-properties-undefined/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: { 5 9 [key: string]: unknown; 6 10 }; 7 11 }; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/array-items-one-of-length-1/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: Array<Bar>; 5 9 }; 6 10 7 11 export type Bar = string; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/array-nested-one-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = Array<{ 4 8 foo?: string; 5 9 bar?: string; ··· 10 14 foo?: string; 11 15 bar?: string; 12 16 }>; 13 - 14 - export type ClientOptions = { 15 - baseUrl: `${string}://${string}` | (string & {}); 16 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/body-response-text-plain/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body: string; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/case-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 86 - 87 - export type ClientOptions = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/case-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type clientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type getFooResponse = getFooResponses[keyof getFooResponses]; 86 - 87 - export type clientOptions = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/case-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type getFooResponse = getFooResponses[keyof getFooResponses]; 86 - 87 - export type ClientOptions = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/case-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type client_options = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type get_foo_response = get_foo_responses[keyof get_foo_responses]; 86 - 87 - export type client_options = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/components-request-bodies/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Foo 5 9 */ ··· 23 27 */ 24 28 200: unknown; 25 29 }; 26 - 27 - export type ClientOptions = { 28 - baseUrl: `${string}://${string}` | (string & {}); 29 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/content-binary/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 25 29 }; 26 30 27 31 export type GetBarResponse = GetBarResponses[keyof GetBarResponses]; 28 - 29 - export type ClientOptions = { 30 - baseUrl: `${string}://${string}` | (string & {}); 31 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/content-types/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseURL: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/discriminator-all-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 id: string; 5 9 }; ··· 61 65 }; 62 66 63 67 export type QuxExtend = FooUnion; 64 - 65 - export type ClientOptions = { 66 - baseUrl: `${string}://${string}` | (string & {}); 67 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/discriminator-any-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 type?: 'Bar'; 5 9 } & Bar) | ({ ··· 26 30 } & Baz) | ({ 27 31 type?: 'non-ascii'; 28 32 } & Spæcial); 29 - 30 - export type ClientOptions = { 31 - baseUrl: `${string}://${string}` | (string & {}); 32 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/discriminator-mapped-many/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 foo: 'one' | 'two'; 5 9 } & Bar) | ({ ··· 19 23 export type Spæcial = { 20 24 foo?: 'four'; 21 25 }; 22 - 23 - export type ClientOptions = { 24 - baseUrl: `${string}://${string}` | (string & {}); 25 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/discriminator-one-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 type: 'Bar'; 5 9 } & Bar) | ({ ··· 26 30 } & Baz) | ({ 27 31 type: 'non-ascii'; 28 32 } & Spæcial); 29 - 30 - export type ClientOptions = { 31 - baseUrl: `${string}://${string}` | (string & {}); 32 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-escape/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: 'foo\'bar' | 'foo"bar'; 5 9 }; 6 10 7 11 export type Bar = 'foo\'bar' | 'foo"bar'; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-inline-javascript/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 type?: TypeEnum; 5 9 }; ··· 7 11 export const TypeEnum = { FOO: 'foo', BAR: 'bar' } as const; 8 12 9 13 export type TypeEnum = typeof TypeEnum[keyof typeof TypeEnum]; 10 - 11 - export type ClientOptions = { 12 - baseUrl: `${string}://${string}` | (string & {}); 13 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-inline-typescript/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 type?: TypeEnum; 5 9 }; ··· 8 12 FOO = 'foo', 9 13 BAR = 'bar' 10 14 } 11 - 12 - export type ClientOptions = { 13 - baseUrl: `${string}://${string}` | (string & {}); 14 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-inline/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 type?: TypeEnum; 5 9 }; 6 10 7 11 export type TypeEnum = 'foo' | 'bar'; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-javascript-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { 110: '1-10', 1120: '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 41 45 } as const; 42 46 43 47 export type Arrays = typeof Arrays[keyof typeof Arrays]; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-javascript-SCREAMING_SNAKE_CASE/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1_10': '1-10', '11_20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 41 45 } as const; 42 46 43 47 export type Arrays = typeof Arrays[keyof typeof Arrays]; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-javascript-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { 110: '1-10', 1120: '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 41 45 } as const; 42 46 43 47 export type Arrays = typeof Arrays[keyof typeof Arrays]; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-javascript-ignore-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1-10': '1-10', '11-20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 40 44 } as const; 41 45 42 46 export type Arrays = typeof Arrays[keyof typeof Arrays]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: `${string}://${string}` | (string & {}); 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-javascript-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1-10': '1-10', '11-20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 41 45 } as const; 42 46 43 47 export type Arrays = typeof Arrays[keyof typeof Arrays]; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-javascript-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1_10': '1-10', '11_20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 41 45 } as const; 42 46 43 47 export type Arrays = typeof Arrays[keyof typeof Arrays]; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-typescript-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-typescript-SCREAMING_SNAKE_CASE/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 '1_10' = '1-10', 5 9 '11_20' = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-typescript-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-typescript-const/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-typescript-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 '1-10' = '1-10', 5 9 '11-20' = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values-typescript-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 '1_10' = '1-10', 5 9 '11_20' = '11-20' ··· 33 37 ] | [ 34 38 'baz' 35 39 ]; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-names-values/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type _110 = '1-10' | '11-20'; 4 8 5 9 export type MyFoo = 'myFoo' | 'myBar'; ··· 17 21 ] | [ 18 22 'baz' 19 23 ]; 20 - 21 - export type ClientOptions = { 22 - baseUrl: `${string}://${string}` | (string & {}); 23 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/enum-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = 'foo' | 'bar' | null; 4 8 5 9 export type Bar = 'foo' | 'bar'; 6 10 7 11 export type Baz = 'foo' | 'bar'; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/exclude-deprecated/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = string; 4 8 5 9 export type PostFooData = { ··· 15 19 */ 16 20 200: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/external/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type ExternalSchemaA = ExternalSharedExternalSharedModel; 4 8 5 9 export type ExternalSchemaB = ExternalSharedExternalSharedModel; ··· 430 434 }; 431 435 432 436 export type GetExternalPropertiesByIdResponse = GetExternalPropertiesByIdResponses[keyof GetExternalPropertiesByIdResponses]; 433 - 434 - export type ClientOptions = { 435 - baseUrl: `${string}://${string}` | (string & {}); 436 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/internal-name-conflict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type CreateData = { 4 8 body?: never; 5 9 path?: never; ··· 41 45 */ 42 46 200: unknown; 43 47 }; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/operation-204/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 19 23 }; 20 24 21 25 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 22 - 23 - export type ClientOptions = { 24 - baseUrl: `${string}://${string}` | (string & {}); 25 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/parameter-explode-false-axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 */ 16 20 default: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseURL: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/parameter-explode-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 */ 16 20 default: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://api.example.com/v1' | (string & {}); 5 + }; 6 + 3 7 export type BusinessProvidersDomainsGetData = { 4 8 body?: never; 5 9 path?: never; ··· 79 83 }; 80 84 81 85 export type GetResponse = GetResponses[keyof GetResponses]; 82 - 83 - export type ClientOptions = { 84 - baseUrl: 'https://api.example.com/v1' | (string & {}); 85 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/client-fetch/sdk-nested-classes/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://api.example.com/v1' | (string & {}); 5 + }; 6 + 3 7 export type BusinessProvidersDomainsGetData = { 4 8 body?: never; 5 9 path?: never; ··· 79 83 }; 80 84 81 85 export type GetResponse = GetResponses[keyof GetResponses]; 82 - 83 - export type ClientOptions = { 84 - baseUrl: 'https://api.example.com/v1' | (string & {}); 85 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/transformers/type-format-valibot/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type TypeID<T extends string> = `${T}_${string}`; 4 8 5 9 export type UserId = TypeID<'user'>; ··· 30 34 }; 31 35 32 36 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 33 - 34 - export type ClientOptions = { 35 - baseUrl: `${string}://${string}` | (string & {}); 36 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/transformers/type-format-zod/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type TypeID<T extends string> = `${T}_${string}`; 4 8 5 9 export type UserId = TypeID<'user'>; ··· 30 34 }; 31 35 32 36 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 33 - 34 - export type ClientOptions = { 35 - baseUrl: `${string}://${string}` | (string & {}); 36 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Baz = { 4 8 baz?: string; 5 9 }; ··· 106 110 }; 107 111 108 112 export type PostFooWriteResponse = PostFooWriteResponses[keyof PostFooWriteResponses]; 109 - 110 - export type ClientOptions = { 111 - baseUrl: `${string}://${string}` | (string & {}); 112 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/typescript/transforms-read-write-ignore/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type FooReadWrite = BarRead & { 4 8 foo?: string; 5 9 }; ··· 89 93 }; 90 94 91 95 export type PostFooWriteResponse = PostFooWriteResponses[keyof PostFooWriteResponses]; 92 - 93 - export type ClientOptions = { 94 - baseUrl: `${string}://${string}` | (string & {}); 95 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseURL: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseURL: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseURL: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseURL: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseURL: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2066 2070 query?: never; 2067 2071 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2068 2072 }; 2069 - 2070 - export type ClientOptions = { 2071 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2072 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-api-key/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 27 31 */ 28 32 200: unknown; 29 33 }; 30 - 31 - export type ClientOptions = { 32 - baseUrl: `${string}://${string}` | (string & {}); 33 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-http-bearer/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-oauth2/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/security-open-id-connect/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/servers/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://foo.com/v1' | `${string}://${string}/v1` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: 'https://foo.com/v1' | `${string}://${string}/v1` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-all-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: Array<Bar>; 5 9 }; ··· 40 44 }; 41 45 42 46 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: `${string}://${string}` | (string & {}); 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-any-of-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: Date; 5 9 bar?: Date | null; ··· 21 25 }; 22 26 23 27 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 24 - 25 - export type ClientOptions = { 26 - baseUrl: `${string}://${string}` | (string & {}); 27 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-array/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 19 23 }; 20 24 21 25 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 22 - 23 - export type ClientOptions = { 24 - baseUrl: `${string}://${string}` | (string & {}); 25 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transformers-recursive/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type TreeNode = { 4 8 id?: string; 5 9 name?: string; ··· 22 26 }; 23 27 24 28 export type GetTreeResponse = GetTreeResponses[keyof GetTreeResponses]; 25 - 26 - export type ClientOptions = { 27 - baseUrl: `${string}://${string}` | (string & {}); 28 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-properties-required-by-default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | 'https://api.pos.dutchie.com' | (string & {}); 5 + }; 6 + 3 7 export type Address = { 4 8 addressId: number | null; 5 9 customerId: number; ··· 10420 10424 }; 10421 10425 10422 10426 export type WhoamiGetResponse = WhoamiGetResponses[keyof WhoamiGetResponses]; 10423 - 10424 - export type ClientOptions = { 10425 - baseUrl: `${string}://${string}` | 'https://api.pos.dutchie.com' | (string & {}); 10426 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/transforms-read-write/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type FooReadWrite = BarRead; 4 8 5 9 export type FooRead = BarRead & { ··· 106 110 }; 107 111 108 112 export type PostFooWriteResponse = PostFooWriteResponses[keyof PostFooWriteResponses]; 109 - 110 - export type ClientOptions = { 111 - baseUrl: `${string}://${string}` | (string & {}); 112 - };
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/type-invalid/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - export type Foo = unknown; 4 - 5 3 export type ClientOptions = { 6 4 baseUrl: `${string}://${string}` | (string & {}); 7 5 }; 6 + 7 + export type Foo = unknown;
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/additional-properties-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 }; ··· 9 13 export type Baz = Foo & { 10 14 bar: string; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: `${string}://${string}` | (string & {}); 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/additional-properties-true-any/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 [key: string]: any | string; ··· 17 21 export type Qux = { 18 22 [key: string]: any; 19 23 }; 20 - 21 - export type ClientOptions = { 22 - baseUrl: `${string}://${string}` | (string & {}); 23 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/additional-properties-true/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: string; 5 9 [key: string]: unknown | string; ··· 17 21 export type Qux = { 18 22 [key: string]: unknown; 19 23 }; 20 - 21 - export type ClientOptions = { 22 - baseUrl: `${string}://${string}` | (string & {}); 23 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/additional-properties-undefined/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: { 5 9 [key: string]: unknown; 6 10 }; 7 11 }; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/array-items-one-of-length-1/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: Array<Bar>; 5 9 }; 6 10 7 11 export type Bar = string; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/array-nested-one-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = Array<{ 4 8 foo?: string; 5 9 bar?: string; ··· 10 14 foo?: string; 11 15 bar?: string; 12 16 }>; 13 - 14 - export type ClientOptions = { 15 - baseUrl: `${string}://${string}` | (string & {}); 16 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/body-response-text-plain/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body: string; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/case-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 86 - 87 - export type ClientOptions = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/case-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type clientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type getFooResponse = getFooResponses[keyof getFooResponses]; 86 - 87 - export type clientOptions = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/case-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type getFooResponse = getFooResponses[keyof getFooResponses]; 86 - 87 - export type ClientOptions = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/case-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type client_options = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * original name: 201 5 9 */ ··· 83 87 }; 84 88 85 89 export type get_foo_response = get_foo_responses[keyof get_foo_responses]; 86 - 87 - export type client_options = { 88 - baseUrl: `${string}://${string}` | (string & {}); 89 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/clean-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/import-file-extension-ts/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-nodenext-sdk/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base'; 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base'; 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/components-request-bodies/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Foo 5 9 */ ··· 23 27 */ 24 28 200: unknown; 25 29 }; 26 - 27 - export type ClientOptions = { 28 - baseUrl: `${string}://${string}` | (string & {}); 29 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/const/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/content-binary/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 25 29 }; 26 30 27 31 export type GetBarResponse = GetBarResponses[keyof GetBarResponses]; 28 - 29 - export type ClientOptions = { 30 - baseUrl: `${string}://${string}` | (string & {}); 31 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/content-types/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseURL: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/discriminator-all-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 id: string; 5 9 }; ··· 61 65 }; 62 66 63 67 export type QuxExtend = FooUnion; 64 - 65 - export type ClientOptions = { 66 - baseUrl: `${string}://${string}` | (string & {}); 67 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/discriminator-any-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 type?: 'Bar'; 5 9 } & Bar) | ({ ··· 26 30 } & Baz) | ({ 27 31 type?: 'non-ascii'; 28 32 } & Spæcial); 29 - 30 - export type ClientOptions = { 31 - baseUrl: `${string}://${string}` | (string & {}); 32 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/discriminator-mapped-many/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 foo: 'one' | 'two'; 5 9 } & Bar) | ({ ··· 19 23 export type Spæcial = { 20 24 foo?: 'four'; 21 25 }; 22 - 23 - export type ClientOptions = { 24 - baseUrl: `${string}://${string}` | (string & {}); 25 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/discriminator-one-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 type: 'Bar'; 5 9 } & Bar) | ({ ··· 26 30 } & Baz) | ({ 27 31 type: 'non-ascii'; 28 32 } & Spæcial); 29 - 30 - export type ClientOptions = { 31 - baseUrl: `${string}://${string}` | (string & {}); 32 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/duplicate-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * should not produce duplicate null 5 9 */ 6 10 export type WeirdEnum = '' | string | null; 7 - 8 - export type ClientOptions = { 9 - baseUrl: `${string}://${string}` | (string & {}); 10 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-escape/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: 'foo\'bar' | 'foo"bar'; 5 9 }; 6 10 7 11 export type Bar = 'foo\'bar' | 'foo"bar'; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-inline-javascript/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 type?: FooEnum; 5 9 }; ··· 71 75 }; 72 76 73 77 export type PutFooResponse = PutFooResponses[keyof PutFooResponses]; 74 - 75 - export type ClientOptions = { 76 - baseUrl: `${string}://${string}` | (string & {}); 77 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-inline-typescript/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 type?: FooEnum; 5 9 }; ··· 73 77 }; 74 78 75 79 export type PutFooResponse = PutFooResponses[keyof PutFooResponses]; 76 - 77 - export type ClientOptions = { 78 - baseUrl: `${string}://${string}` | (string & {}); 79 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-inline/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 type?: FooEnum; 5 9 }; ··· 65 69 }; 66 70 67 71 export type PutFooResponse = PutFooResponses[keyof PutFooResponses]; 68 - 69 - export type ClientOptions = { 70 - baseUrl: `${string}://${string}` | (string & {}); 71 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-javascript-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { 110: '1-10', 1120: '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 45 49 export type MyFooRef = { 46 50 foo?: Array<MyFoo2>; 47 51 }; 48 - 49 - export type ClientOptions = { 50 - baseUrl: `${string}://${string}` | (string & {}); 51 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-javascript-SCREAMING_SNAKE_CASE/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1_10': '1-10', '11_20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 45 49 export type MyFooRef = { 46 50 foo?: Array<MyFoo2>; 47 51 }; 48 - 49 - export type ClientOptions = { 50 - baseUrl: `${string}://${string}` | (string & {}); 51 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-javascript-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { 110: '1-10', 1120: '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 45 49 export type MyFooRef = { 46 50 foo?: Array<MyFoo2>; 47 51 }; 48 - 49 - export type ClientOptions = { 50 - baseUrl: `${string}://${string}` | (string & {}); 51 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-javascript-ignore-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1-10': '1-10', '11-20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 44 48 export type MyFooRef = { 45 49 foo?: Array<MyFoo2>; 46 50 }; 47 - 48 - export type ClientOptions = { 49 - baseUrl: `${string}://${string}` | (string & {}); 50 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-javascript-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1-10': '1-10', '11-20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 45 49 export type MyFooRef = { 46 50 foo?: Array<MyFoo2>; 47 51 }; 48 - 49 - export type ClientOptions = { 50 - baseUrl: `${string}://${string}` | (string & {}); 51 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-javascript-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const _110 = { '1_10': '1-10', '11_20': '11-20' } as const; 4 8 5 9 export type _110 = typeof _110[keyof typeof _110]; ··· 45 49 export type MyFooRef = { 46 50 foo?: Array<MyFoo2>; 47 51 }; 48 - 49 - export type ClientOptions = { 50 - baseUrl: `${string}://${string}` | (string & {}); 51 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-typescript-PascalCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 37 41 export type MyFooRef = { 38 42 foo?: Array<MyFoo2>; 39 43 }; 40 - 41 - export type ClientOptions = { 42 - baseUrl: `${string}://${string}` | (string & {}); 43 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-typescript-SCREAMING_SNAKE_CASE/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 '1_10' = '1-10', 5 9 '11_20' = '11-20' ··· 37 41 export type MyFooRef = { 38 42 foo?: Array<MyFoo2>; 39 43 }; 40 - 41 - export type ClientOptions = { 42 - baseUrl: `${string}://${string}` | (string & {}); 43 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-typescript-camelCase/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 37 41 export type MyFooRef = { 38 42 foo?: Array<MyFoo2>; 39 43 }; 40 - 41 - export type ClientOptions = { 42 - baseUrl: `${string}://${string}` | (string & {}); 43 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-typescript-const/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export const enum _110 { 4 8 _110 = '1-10', 5 9 _1120 = '11-20' ··· 37 41 export type MyFooRef = { 38 42 foo?: Array<MyFoo2>; 39 43 }; 40 - 41 - export type ClientOptions = { 42 - baseUrl: `${string}://${string}` | (string & {}); 43 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-typescript-preserve/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 '1-10' = '1-10', 5 9 '11-20' = '11-20' ··· 37 41 export type MyFooRef = { 38 42 foo?: Array<MyFoo2>; 39 43 }; 40 - 41 - export type ClientOptions = { 42 - baseUrl: `${string}://${string}` | (string & {}); 43 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values-typescript-snake_case/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export enum _110 { 4 8 '1_10' = '1-10', 5 9 '11_20' = '11-20' ··· 37 41 export type MyFooRef = { 38 42 foo?: Array<MyFoo2>; 39 43 }; 40 - 41 - export type ClientOptions = { 42 - baseUrl: `${string}://${string}` | (string & {}); 43 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-names-values/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type _110 = '1-10' | '11-20'; 4 8 5 9 export type MyFoo = 'myFoo' | 'myBar'; ··· 21 25 export type MyFooRef = { 22 26 foo?: Array<MyFoo2>; 23 27 }; 24 - 25 - export type ClientOptions = { 26 - baseUrl: `${string}://${string}` | (string & {}); 27 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/enum-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = 'foo' | 'bar' | null; 4 8 5 9 export type Bar = 'foo' | 'bar'; 6 10 7 11 export type Baz = 'foo' | 'bar'; 8 - 9 - export type ClientOptions = { 10 - baseUrl: `${string}://${string}` | (string & {}); 11 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/exclude-deprecated/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = string; 4 8 5 9 export type PostFooData = { ··· 15 19 */ 16 20 200: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/external/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * External schema (A) 5 9 */ ··· 466 470 }; 467 471 468 472 export type GetExternalPropertiesByIdResponse = GetExternalPropertiesByIdResponses[keyof GetExternalPropertiesByIdResponses]; 469 - 470 - export type ClientOptions = { 471 - baseUrl: `${string}://${string}` | (string & {}); 472 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/headers/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body: string; 5 9 headers: { ··· 72 76 }; 73 77 74 78 export type PutFooResponse = PutFooResponses[keyof PutFooResponses]; 75 - 76 - export type ClientOptions = { 77 - baseUrl: `${string}://${string}` | (string & {}); 78 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/internal-name-conflict/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type CreateData = { 4 8 body?: never; 5 9 path?: never; ··· 41 45 */ 42 46 200: unknown; 43 47 }; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/negative-property-names/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Reaction Rollup 5 9 */ ··· 15 19 eyes: number; 16 20 rocket: number; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/object-properties-all-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 bar: string; 5 9 } & { ··· 9 13 bar?: string; 10 14 baz?: string; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: `${string}://${string}` | (string & {}); 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/object-properties-any-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 bar: string; 5 9 } | { ··· 9 13 bar?: string; 10 14 baz?: string; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: `${string}://${string}` | (string & {}); 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/object-properties-one-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = ({ 4 8 bar: string; 5 9 } | { ··· 9 13 bar?: string; 10 14 baz?: string; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: `${string}://${string}` | (string & {}); 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/object-property-names/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = 'foo' | 'bar'; 4 8 5 9 export type Bar = { ··· 9 13 export type Baz = { 10 14 [key in Foo]?: number; 11 15 }; 12 - 13 - export type ClientOptions = { 14 - baseUrl: `${string}://${string}` | (string & {}); 15 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/operation-204/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 19 23 }; 20 24 21 25 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 22 - 23 - export type ClientOptions = { 24 - baseUrl: `${string}://${string}` | (string & {}); 25 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/pagination-ref/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 page?: number | null; 5 9 }; ··· 41 45 */ 42 46 200: unknown; 43 47 }; 44 - 45 - export type ClientOptions = { 46 - baseUrl: `${string}://${string}` | (string & {}); 47 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/parameter-explode-false-axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 */ 16 20 default: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseURL: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/parameter-explode-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 */ 16 20 default: unknown; 17 21 }; 18 - 19 - export type ClientOptions = { 20 - baseUrl: `${string}://${string}` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/parameter-tuple/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PostFooData = { 4 8 body?: never; 5 9 path?: never; ··· 20 24 */ 21 25 default: unknown; 22 26 }; 23 - 24 - export type ClientOptions = { 25 - baseUrl: `${string}://${string}` | (string & {}); 26 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/pattern-properties/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type PatternPropertiesTest = { 4 8 id?: string; 5 9 metadata?: MetadataObject; ··· 50 54 }; 51 55 52 56 export type PostPatternTestResponse = PostPatternTestResponses[keyof PostPatternTestResponses]; 53 - 54 - export type ClientOptions = { 55 - baseUrl: `${string}://${string}` | (string & {}); 56 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default-class/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/client-fetch/sdk-nested-classes-instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type BusinessProvidersDomainsGetData = { 4 8 body?: never; 5 9 path?: never; ··· 79 83 }; 80 84 81 85 export type GetResponse = GetResponses[keyof GetResponses]; 82 - 83 - export type ClientOptions = { 84 - baseUrl: `${string}://${string}` | (string & {}); 85 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/client-fetch/sdk-nested-classes/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type BusinessProvidersDomainsGetData = { 4 8 body?: never; 5 9 path?: never; ··· 79 83 }; 80 84 81 85 export type GetResponse = GetResponses[keyof GetResponses]; 82 - 83 - export type ClientOptions = { 84 - baseUrl: `${string}://${string}` | (string & {}); 85 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/transformers/type-format-valibot/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type TypeID<T extends string> = `${T}_${string}`; 4 8 5 9 export type UserId = TypeID<'user'>; ··· 30 34 }; 31 35 32 36 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 33 - 34 - export type ClientOptions = { 35 - baseUrl: `${string}://${string}` | (string & {}); 36 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/transformers/type-format-zod/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type TypeID<T extends string> = `${T}_${string}`; 4 8 5 9 export type UserId = TypeID<'user'>; ··· 30 34 }; 31 35 32 36 export type PostFooResponse = PostFooResponses[keyof PostFooResponses]; 33 - 34 - export type ClientOptions = { 35 - baseUrl: `${string}://${string}` | (string & {}); 36 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/typescript/transforms-read-write-custom-name/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Baz = { 4 8 baz?: string; 5 9 }; ··· 160 164 }; 161 165 162 166 export type PutFooWriteResponse = PutFooWriteResponses[keyof PutFooWriteResponses]; 163 - 164 - export type ClientOptions = { 165 - baseUrl: `${string}://${string}` | (string & {}); 166 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/typescript/transforms-read-write-ignore/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type FooReadWrite = BarRead & { 4 8 foo?: string; 5 9 }; ··· 136 140 }; 137 141 138 142 export type PutFooWriteResponse = PutFooWriteResponses[keyof PutFooWriteResponses]; 139 - 140 - export type ClientOptions = { 141 - baseUrl: `${string}://${string}` | (string & {}); 142 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/asClass/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseURL: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/name-builder/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 95 99 }; 96 100 97 101 export type FooBarPutResponse = FooBarPutResponses[keyof FooBarPutResponses]; 98 - 99 - export type ClientOptions = { 100 - baseUrl: `${string}://${string}` | (string & {}); 101 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'http://localhost:3000/base' | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Model with number-only name 5 9 */ ··· 2085 2089 query?: never; 2086 2090 url: '/api/v{api-version}/non-ascii-æøåÆØÅöôêÊ字符串'; 2087 2091 }; 2088 - 2089 - export type ClientOptions = { 2090 - baseUrl: 'http://localhost:3000/base' | (string & {}); 2091 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/ref-type/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: Array<{ 5 9 baz: Bar | null; ··· 25 29 }; 26 30 27 31 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 28 - 29 - export type ClientOptions = { 30 - baseUrl: `${string}://${string}` | (string & {}); 31 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/required-all-of-ref/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: string; 5 9 baz?: string; ··· 10 14 foo: string; 11 15 baz: string; 12 16 }; 13 - 14 - export type ClientOptions = { 15 - baseUrl: `${string}://${string}` | (string & {}); 16 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/required-any-of-ref/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: string; 5 9 baz?: string; ··· 8 12 export type Bar = Foo & { 9 13 bar: number; 10 14 }; 11 - 12 - export type ClientOptions = { 13 - baseUrl: `${string}://${string}` | (string & {}); 14 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/required-one-of-ref/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: string; 5 9 baz?: string; ··· 8 12 export type Bar = Foo & { 9 13 bar: number; 10 14 }; 11 - 12 - export type ClientOptions = { 13 - baseUrl: `${string}://${string}` | (string & {}); 14 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/schema-const/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo?: 'foo'; 5 9 bar?: 3.2; ··· 35 39 stringInt64?: '-9223372036854775808'; 36 40 stringUint64?: '18446744073709551615'; 37 41 }; 38 - 39 - export type ClientOptions = { 40 - baseUrl: `${string}://${string}` | (string & {}); 41 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-api-key/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 27 31 */ 28 32 200: unknown; 29 33 }; 30 - 31 - export type ClientOptions = { 32 - baseUrl: `${string}://${string}` | (string & {}); 33 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-false/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-http-bearer/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-oauth2/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/security-open-id-connect/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 13 17 */ 14 18 200: unknown; 15 19 }; 16 - 17 - export type ClientOptions = { 18 - baseUrl: `${string}://${string}` | (string & {}); 19 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/servers/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: 'https://foo.com/v1' | `${string}://${string}/v1` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 15 19 }; 16 20 17 21 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 18 - 19 - export type ClientOptions = { 20 - baseUrl: 'https://foo.com/v1' | `${string}://${string}/v1` | (string & {}); 21 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-angular/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Range = { 4 8 start: { 5 9 line: number; ··· 521 525 }; 522 526 523 527 export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; 524 - 525 - export type ClientOptions = { 526 - baseUrl: `${string}://${string}` | (string & {}); 527 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-axios/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Range = { 4 8 start: { 5 9 line: number; ··· 521 525 }; 522 526 523 527 export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; 524 - 525 - export type ClientOptions = { 526 - baseURL: `${string}://${string}` | (string & {}); 527 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-fetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Range = { 4 8 start: { 5 9 line: number; ··· 521 525 }; 522 526 523 527 export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; 524 - 525 - export type ClientOptions = { 526 - baseUrl: `${string}://${string}` | (string & {}); 527 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-next/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Range = { 4 8 start: { 5 9 line: number; ··· 521 525 }; 522 526 523 527 export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; 524 - 525 - export type ClientOptions = { 526 - baseUrl: `${string}://${string}` | (string & {}); 527 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-nuxt/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseURL: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Range = { 4 8 start: { 5 9 line: number; ··· 521 525 }; 522 526 523 527 export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; 524 - 525 - export type ClientOptions = { 526 - baseURL: `${string}://${string}` | (string & {}); 527 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/sse-ofetch/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Range = { 4 8 start: { 5 9 line: number; ··· 521 525 }; 522 526 523 527 export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses]; 524 - 525 - export type ClientOptions = { 526 - baseUrl: `${string}://${string}` | (string & {}); 527 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/string-with-format/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - export type Foo = { 4 - foo?: Array<Blob | File | string>; 5 - }; 6 - 7 3 export type ClientOptions = { 8 4 baseUrl: `${string}://${string}` | (string & {}); 9 5 }; 6 + 7 + export type Foo = { 8 + foo?: Array<Blob | File | string>; 9 + };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-all-of/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Foo = { 4 8 foo: Array<Bar>; 5 9 }; ··· 40 44 }; 41 45 42 46 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 43 - 44 - export type ClientOptions = { 45 - baseUrl: `${string}://${string}` | (string & {}); 46 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-any-of-null/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 /** 4 8 * Object with a nested date structure 5 9 */ ··· 47 51 }; 48 52 49 53 export type NestedDateObjectResponse = NestedDateObjectResponses[keyof NestedDateObjectResponses]; 50 - 51 - export type ClientOptions = { 52 - baseUrl: `${string}://${string}` | (string & {}); 53 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-array/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 19 23 }; 20 24 21 25 export type GetFooResponse = GetFooResponses[keyof GetFooResponses]; 22 - 23 - export type ClientOptions = { 24 - baseUrl: `${string}://${string}` | (string & {}); 25 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transformers-recursive/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type TreeNode = { 4 8 id?: string; 5 9 name?: string; ··· 22 26 }; 23 27 24 28 export type GetTreeResponse = GetTreeResponses[keyof GetTreeResponses]; 25 - 26 - export type ClientOptions = { 27 - baseUrl: `${string}://${string}` | (string & {}); 28 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write-nested/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type CreateItemRequest = { 4 8 payload: Payload; 5 9 }; ··· 33 37 */ 34 38 201: unknown; 35 39 }; 36 - 37 - export type ClientOptions = { 38 - baseUrl: `${string}://${string}` | (string & {}); 39 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write-response/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type ItemListResponse = { 4 8 items: Array<Item>; 5 9 }; ··· 39 43 }; 40 44 41 45 export type ItemListResponse2 = ItemListResponses[keyof ItemListResponses]; 42 - 43 - export type ClientOptions = { 44 - baseUrl: `${string}://${string}` | (string & {}); 45 - };
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/transforms-read-write/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type FooReadWrite = BarRead; 4 8 5 9 export type FooRead = BarRead & { ··· 160 164 }; 161 165 162 166 export type PutFooWriteResponse = PutFooWriteResponses[keyof PutFooWriteResponses]; 163 - 164 - export type ClientOptions = { 165 - baseUrl: `${string}://${string}` | (string & {}); 166 - };
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/type-invalid/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - export type Foo = unknown; 4 - 5 3 export type ClientOptions = { 6 4 baseUrl: `${string}://${string}` | (string & {}); 7 5 }; 6 + 7 + export type Foo = unknown;
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/union-types/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 - export type Foo = { 4 - bar?: number | boolean | string; 5 - }; 6 - 7 3 export type ClientOptions = { 8 4 baseUrl: `${string}://${string}` | (string & {}); 9 5 }; 6 + 7 + export type Foo = { 8 + bar?: number | boolean | string; 9 + };
+6 -6
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/webhooks/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 7 + export type Webhooks = SessionUserPhoneCalloutRingingWebhookRequest | SessionUserRoomSystemCalloutRingingWebhookRequest | SessionRecordingStartedWebhookRequest | SessionRecordingResumedWebhookRequest | SessionLiveStreamingStoppedWebhookRequest | SessionStreamIngestionStoppedWebhookRequest | SessionUserRoomSystemCalloutRejectedWebhookRequest | SessionAlertWebhookRequest | SessionSharingEndedWebhookRequest | SessionRecordingPausedWebhookRequest | SessionEndedWebhookRequest | SessionStartedWebhookRequest | SessionStreamIngestionUnbindWebhookRequest | SessionLiveStreamingStartedWebhookRequest | SessionUserRoomSystemCalloutMissedWebhookRequest | SessionUserPhoneCalloutAcceptedWebhookRequest | SessionUserLeftWebhookRequest | SessionSharingStartedWebhookRequest | SessionUserPhoneCalloutCanceledWebhookRequest | SessionRecordingTranscriptCompletedWebhookRequest | SessionRecordingDeletedWebhookRequest | SessionUserRoomSystemCalloutFailedWebhookRequest | SessionRecordingCompletedWebhookRequest | SessionRecordingTranscriptFailedWebhookRequest | SessionRecordingTrashedWebhookRequest | SessionUserJoinedWebhookRequest | SessionStreamIngestionStartedWebhookRequest | SessionStreamIngestionConnectedWebhookRequest | SessionStreamIngestionDisconnectedWebhookRequest | SessionRecordingRecoveredWebhookRequest | SessionUserPhoneCalloutMissedWebhookRequest | SessionUserPhoneCalloutRejectedWebhookRequest | SessionUserRoomSystemCalloutAcceptedWebhookRequest | SessionRecordingStoppedWebhookRequest; 8 + 3 9 /** 4 10 * # session.user_phone_callout_ringing 5 11 * ··· 3331 3337 path?: never; 3332 3338 query?: never; 3333 3339 }; 3334 - 3335 - export type ClientOptions = { 3336 - baseUrl: `${string}://${string}` | (string & {}); 3337 - }; 3338 - 3339 - export type Webhooks = SessionUserPhoneCalloutRingingWebhookRequest | SessionUserRoomSystemCalloutRingingWebhookRequest | SessionRecordingStartedWebhookRequest | SessionRecordingResumedWebhookRequest | SessionLiveStreamingStoppedWebhookRequest | SessionStreamIngestionStoppedWebhookRequest | SessionUserRoomSystemCalloutRejectedWebhookRequest | SessionAlertWebhookRequest | SessionSharingEndedWebhookRequest | SessionRecordingPausedWebhookRequest | SessionEndedWebhookRequest | SessionStartedWebhookRequest | SessionStreamIngestionUnbindWebhookRequest | SessionLiveStreamingStartedWebhookRequest | SessionUserRoomSystemCalloutMissedWebhookRequest | SessionUserPhoneCalloutAcceptedWebhookRequest | SessionUserLeftWebhookRequest | SessionSharingStartedWebhookRequest | SessionUserPhoneCalloutCanceledWebhookRequest | SessionRecordingTranscriptCompletedWebhookRequest | SessionRecordingDeletedWebhookRequest | SessionUserRoomSystemCalloutFailedWebhookRequest | SessionRecordingCompletedWebhookRequest | SessionRecordingTranscriptFailedWebhookRequest | SessionRecordingTrashedWebhookRequest | SessionUserJoinedWebhookRequest | SessionStreamIngestionStartedWebhookRequest | SessionStreamIngestionConnectedWebhookRequest | SessionStreamIngestionDisconnectedWebhookRequest | SessionRecordingRecoveredWebhookRequest | SessionUserPhoneCalloutMissedWebhookRequest | SessionUserPhoneCalloutRejectedWebhookRequest | SessionUserRoomSystemCalloutAcceptedWebhookRequest | SessionRecordingStoppedWebhookRequest;
+4 -4
packages/openapi-ts-tests/main/test/__snapshots__/plugins/@tanstack/meta/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type GetFooData = { 4 8 body?: never; 5 9 path?: never; ··· 27 31 */ 28 32 200: unknown; 29 33 }; 30 - 31 - export type ClientOptions = { 32 - baseUrl: `${string}://${string}` | (string & {}); 33 - };
+4 -4
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/class/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type AccessTokenResponse = { 4 8 readonly tokenType?: string; 5 9 accessToken: string; ··· 4183 4187 }; 4184 4188 4185 4189 export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses]; 4186 - 4187 - export type ClientOptions = { 4188 - baseUrl: `${string}://${string}` | (string & {}); 4189 - };
+4 -4
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/flat/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type AccessTokenResponse = { 4 8 readonly tokenType?: string; 5 9 accessToken: string; ··· 4183 4187 }; 4184 4188 4185 4189 export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses]; 4186 - 4187 - export type ClientOptions = { 4188 - baseUrl: `${string}://${string}` | (string & {}); 4189 - };
+4 -4
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/instance/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type AccessTokenResponse = { 4 8 readonly tokenType?: string; 5 9 accessToken: string; ··· 4183 4187 }; 4184 4188 4185 4189 export type PatchApiV1UsersByIdResponse = PatchApiV1UsersByIdResponses[keyof PatchApiV1UsersByIdResponses]; 4186 - 4187 - export type ClientOptions = { 4188 - baseUrl: `${string}://${string}` | (string & {}); 4189 - };
+4 -4
packages/openapi-ts-tests/sdks/__snapshots__/opencode/flat/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Event = ({ 4 8 type: 'installation.updated'; 5 9 } & EventInstallationUpdated) | ({ ··· 1937 1941 }; 1938 1942 1939 1943 export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses]; 1940 - 1941 - export type ClientOptions = { 1942 - baseUrl: `${string}://${string}` | (string & {}); 1943 - };
+4 -4
packages/openapi-ts-tests/sdks/__snapshots__/opencode/grouped/types.gen.ts
··· 1 1 // This file is auto-generated by @hey-api/openapi-ts 2 2 3 + export type ClientOptions = { 4 + baseUrl: `${string}://${string}` | (string & {}); 5 + }; 6 + 3 7 export type Event = ({ 4 8 type: 'installation.updated'; 5 9 } & EventInstallationUpdated) | ({ ··· 1937 1941 }; 1938 1942 1939 1943 export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses]; 1940 - 1941 - export type ClientOptions = { 1942 - baseUrl: `${string}://${string}` | (string & {}); 1943 - };
+22 -6
packages/openapi-ts/src/plugins/@hey-api/typescript/shared/clientOptions.ts
··· 1 - import type { Symbol } from '@hey-api/codegen-core'; 2 - 3 1 import type { IR } from '~/ir/types'; 2 + import { buildName } from '~/openApi/shared/utils/name'; 4 3 import { 5 4 getClientBaseUrlKey, 6 5 getClientPlugin, ··· 28 27 }; 29 28 30 29 export const createClientOptions = ({ 30 + nodeIndex, 31 31 plugin, 32 32 servers, 33 - symbolClientOptions, 34 33 }: { 34 + nodeIndex: number; 35 35 plugin: HeyApiTypeScriptPlugin['Instance']; 36 36 servers: ReadonlyArray<IR.ServerObject>; 37 - symbolClientOptions: Symbol; 38 37 }) => { 39 38 const client = getClientPlugin(plugin.context.config); 40 39 ··· 50 49 types.push($.type.and($.type('string'), $.type.object())); 51 50 } 52 51 52 + const symbol = plugin.symbol( 53 + buildName({ 54 + config: { 55 + case: plugin.config.case, 56 + }, 57 + name: 'ClientOptions', 58 + }), 59 + { 60 + meta: { 61 + category: 'type', 62 + resource: 'client', 63 + role: 'options', 64 + tool: 'typescript', 65 + }, 66 + }, 67 + ); 68 + 53 69 const node = $.type 54 - .alias(symbolClientOptions) 70 + .alias(symbol) 55 71 .export() 56 72 .type( 57 73 $.type ··· 60 76 p.type($.type.or(...types)), 61 77 ), 62 78 ); 63 - plugin.addNode(node); 79 + plugin.updateNode(nodeIndex, node); 64 80 };
+23 -33
packages/openapi-ts/src/plugins/@hey-api/typescript/v1/plugin.ts
··· 85 85 }; 86 86 87 87 export const handlerV1: HeyApiTypeScriptPlugin['Handler'] = ({ plugin }) => { 88 - // reserve identifier for ClientOptions 89 - const symbolClientOptions = plugin.registerSymbol({ 90 - meta: { 91 - category: 'type', 92 - resource: 'client', 93 - role: 'options', 94 - tool: 'typescript', 95 - }, 96 - name: buildName({ 97 - config: { 98 - case: plugin.config.case, 99 - }, 100 - name: 'ClientOptions', 101 - }), 102 - }); 103 - // reserve identifier for Webhooks 104 - const symbolWebhooks = plugin.registerSymbol({ 105 - meta: { 106 - category: 'type', 107 - resource: 'webhook', 108 - tool: 'typescript', 109 - variant: 'container', 110 - }, 111 - name: buildName({ 112 - config: { 113 - case: plugin.config.case, 114 - }, 115 - name: 'Webhooks', 116 - }), 117 - }); 88 + // reserve node for ClientOptions 89 + const nodeClientIndex = plugin.addNode(null); 90 + // reserve node for Webhooks 91 + const nodeWebhooksIndex = plugin.addNode(null); 118 92 119 93 const servers: Array<IR.ServerObject> = []; 120 94 const webhooks: Array<Symbol> = []; ··· 179 153 }, 180 154 ); 181 155 182 - createClientOptions({ plugin, servers, symbolClientOptions }); 156 + createClientOptions({ nodeIndex: nodeClientIndex, plugin, servers }); 183 157 184 158 if (webhooks.length > 0) { 159 + const symbol = plugin.symbol( 160 + buildName({ 161 + config: { 162 + case: plugin.config.case, 163 + }, 164 + name: 'Webhooks', 165 + }), 166 + { 167 + meta: { 168 + category: 'type', 169 + resource: 'webhook', 170 + tool: 'typescript', 171 + variant: 'container', 172 + }, 173 + }, 174 + ); 185 175 const node = $.type 186 - .alias(symbolWebhooks) 176 + .alias(symbol) 187 177 .export() 188 178 .type($.type.or(...webhooks)); 189 - plugin.addNode(node); 179 + plugin.updateNode(nodeWebhooksIndex, node); 190 180 } 191 181 };
+7 -1
packages/openapi-ts/src/plugins/shared/utils/instance.ts
··· 106 106 this.package = props.context.package; 107 107 } 108 108 109 - addNode(node: Node): void { 109 + addNode(node: Node | null): number { 110 110 return this.gen.nodes.add(node); 111 + } 112 + removeNode(index: number): void { 113 + return this.gen.nodes.remove(index); 114 + } 115 + updateNode(index: number, node: Node | null): void { 116 + return this.gen.nodes.update(index, node); 111 117 } 112 118 113 119 /**