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

Configure Feed

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

fix: remove redundant union of property types in index signature for unknown additionalProperties

When a schema has both `properties` and `additionalProperties: {}` (or `true`),
the generator now emits `[key: string]: unknown` instead of the redundant union
`[key: string]: unknown | string | null | ... | undefined`.

- When additionalProperties is `unknown`, only use it for the index signature type
(since `unknown` already subsumes all types including `undefined`)
- For typed additionalProperties (e.g. `{ type: 'string' }`), keep current behavior
of including named property types to satisfy TypeScript's index constraint
- Update all affected test snapshots

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>

+166 -171
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/additional-properties-true/types.gen.ts
··· 6 6 7 7 export type Foo = { 8 8 foo: string; 9 - [key: string]: unknown | string; 9 + [key: string]: unknown; 10 10 }; 11 11 12 12 export type Bar = Foo & { ··· 15 15 16 16 export type Baz = Foo & { 17 17 bar: string; 18 - [key: string]: unknown | string; 18 + [key: string]: unknown; 19 19 }; 20 20 21 21 export type Qux = {
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/additional-properties-true/types.gen.ts
··· 6 6 7 7 export type Foo = { 8 8 foo: string; 9 - [key: string]: unknown | string; 9 + [key: string]: unknown; 10 10 }; 11 11 12 12 export type Bar = Foo & { ··· 15 15 16 16 export type Baz = Foo & { 17 17 bar: string; 18 - [key: string]: unknown | string; 18 + [key: string]: unknown; 19 19 }; 20 20 21 21 export type Qux = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default-class/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@angular/common/default/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.0.x/plugins/fastify/default/types.gen.ts
··· 703 703 * This is a simple string property 704 704 */ 705 705 prop?: string; 706 - [key: string]: unknown | string | undefined; 706 + [key: string]: unknown; 707 707 }; 708 708 709 709 export type NestedAnyOfArraysNullable = {
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/additional-properties-true-any/types.gen.ts
··· 6 6 7 7 export type Foo = { 8 8 foo: string; 9 - [key: string]: any | string; 9 + [key: string]: any; 10 10 }; 11 11 12 12 export type Bar = Foo & { ··· 15 15 16 16 export type Baz = Foo & { 17 17 bar: string; 18 - [key: string]: any | string; 18 + [key: string]: any; 19 19 }; 20 20 21 21 export type Qux = {
+2 -2
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/additional-properties-true/types.gen.ts
··· 6 6 7 7 export type Foo = { 8 8 foo: string; 9 - [key: string]: unknown | string; 9 + [key: string]: unknown; 10 10 }; 11 11 12 12 export type Bar = Foo & { ··· 15 15 16 16 export type Baz = Foo & { 17 17 bar: string; 18 - [key: string]: unknown | string; 18 + [key: string]: unknown; 19 19 }; 20 20 21 21 export type Qux = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-angular/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-axios/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-fetch/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ky/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-next/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-nuxt/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/clean-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/import-file-extension-ts/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-node16-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/@hey-api/client-ofetch/tsconfig-nodenext-sdk/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/bundle/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/client-custom/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-false/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-number/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-strict/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/base-url-string/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/bundle/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-optional/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/clients/my-client/sdk-client-required/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default-class/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@angular/common/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@pinia/colada/fetch/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/axios/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/angular-query-experimental/fetch/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/axios/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/react-query/fetch/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/axios/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/solid-query/fetch/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/axios/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/svelte-query/fetch/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/axios/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/@tanstack/vue-query/fetch/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+1 -1
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/plugins/fastify/default/types.gen.ts
··· 712 712 * This is a simple string property 713 713 */ 714 714 prop?: string; 715 - [key: string]: unknown | string | undefined; 715 + [key: string]: unknown; 716 716 }; 717 717 718 718 export type NestedAnyOfArraysNullable = {
+5 -5
packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/webhooks/types.gen.ts
··· 179 179 * The user's device IP address. 180 180 */ 181 181 device_ip: string; 182 - [key: string]: unknown | string; 182 + [key: string]: unknown; 183 183 }; 184 184 }; 185 185 }; ··· 629 629 * The user's device IP address. 630 630 */ 631 631 device_ip: string; 632 - [key: string]: unknown | string; 632 + [key: string]: unknown; 633 633 }; 634 634 }; 635 635 }; ··· 1317 1317 * The user's device IP address. 1318 1318 */ 1319 1319 device_ip: string; 1320 - [key: string]: unknown | string; 1320 + [key: string]: unknown; 1321 1321 }; 1322 1322 }; 1323 1323 }; ··· 2063 2063 * The user's device IP address. 2064 2064 */ 2065 2065 device_ip: string; 2066 - [key: string]: unknown | string; 2066 + [key: string]: unknown; 2067 2067 }; 2068 2068 }; 2069 2069 }; ··· 3240 3240 * The user's device IP address. 3241 3241 */ 3242 3242 device_ip: string; 3243 - [key: string]: unknown | string; 3243 + [key: string]: unknown; 3244 3244 }; 3245 3245 }; 3246 3246 };
+1 -3
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/class/types.gen.ts
··· 329 329 errors?: { 330 330 [key: string]: Array<string>; 331 331 }; 332 - [key: string]: unknown | string | null | string | null | number | null | string | null | string | null | { 333 - [key: string]: Array<string>; 334 - } | undefined; 332 + [key: string]: unknown; 335 333 }; 336 334 337 335 export type InfoRequest = {
+1 -3
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/flat/types.gen.ts
··· 329 329 errors?: { 330 330 [key: string]: Array<string>; 331 331 }; 332 - [key: string]: unknown | string | null | string | null | number | null | string | null | string | null | { 333 - [key: string]: Array<string>; 334 - } | undefined; 332 + [key: string]: unknown; 335 333 }; 336 334 337 335 export type InfoRequest = {
+1 -3
packages/openapi-ts-tests/sdks/__snapshots__/method-class-conflict/instance/types.gen.ts
··· 329 329 errors?: { 330 330 [key: string]: Array<string>; 331 331 }; 332 - [key: string]: unknown | string | null | string | null | number | null | string | null | string | null | { 333 - [key: string]: Array<string>; 334 - } | undefined; 332 + [key: string]: unknown; 335 333 }; 336 334 337 335 export type InfoRequest = {
+3 -7
packages/openapi-ts-tests/sdks/__snapshots__/opencode/export-all/types.gen.ts
··· 1188 1188 */ 1189 1189 maxSteps?: number; 1190 1190 permission?: PermissionConfig; 1191 - [key: string]: unknown | string | number | { 1192 - [key: string]: boolean; 1193 - } | boolean | 'subagent' | 'primary' | 'all' | { 1194 - [key: string]: unknown; 1195 - } | string | number | PermissionConfig | undefined; 1191 + [key: string]: unknown; 1196 1192 }; 1197 1193 1198 1194 export type ProviderConfig = { ··· 1254 1250 * Disable this variant for the model 1255 1251 */ 1256 1252 disabled?: boolean; 1257 - [key: string]: unknown | boolean | undefined; 1253 + [key: string]: unknown; 1258 1254 }; 1259 1255 }; 1260 1256 }; ··· 1276 1272 * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. 1277 1273 */ 1278 1274 timeout?: number | false; 1279 - [key: string]: unknown | string | boolean | number | false | undefined; 1275 + [key: string]: unknown; 1280 1276 }; 1281 1277 }; 1282 1278
+3 -7
packages/openapi-ts-tests/sdks/__snapshots__/opencode/flat/types.gen.ts
··· 1188 1188 */ 1189 1189 maxSteps?: number; 1190 1190 permission?: PermissionConfig; 1191 - [key: string]: unknown | string | number | { 1192 - [key: string]: boolean; 1193 - } | boolean | 'subagent' | 'primary' | 'all' | { 1194 - [key: string]: unknown; 1195 - } | string | number | PermissionConfig | undefined; 1191 + [key: string]: unknown; 1196 1192 }; 1197 1193 1198 1194 export type ProviderConfig = { ··· 1254 1250 * Disable this variant for the model 1255 1251 */ 1256 1252 disabled?: boolean; 1257 - [key: string]: unknown | boolean | undefined; 1253 + [key: string]: unknown; 1258 1254 }; 1259 1255 }; 1260 1256 }; ··· 1276 1272 * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. 1277 1273 */ 1278 1274 timeout?: number | false; 1279 - [key: string]: unknown | string | boolean | number | false | undefined; 1275 + [key: string]: unknown; 1280 1276 }; 1281 1277 }; 1282 1278
+3 -7
packages/openapi-ts-tests/sdks/__snapshots__/opencode/grouped/types.gen.ts
··· 1188 1188 */ 1189 1189 maxSteps?: number; 1190 1190 permission?: PermissionConfig; 1191 - [key: string]: unknown | string | number | { 1192 - [key: string]: boolean; 1193 - } | boolean | 'subagent' | 'primary' | 'all' | { 1194 - [key: string]: unknown; 1195 - } | string | number | PermissionConfig | undefined; 1191 + [key: string]: unknown; 1196 1192 }; 1197 1193 1198 1194 export type ProviderConfig = { ··· 1254 1250 * Disable this variant for the model 1255 1251 */ 1256 1252 disabled?: boolean; 1257 - [key: string]: unknown | boolean | undefined; 1253 + [key: string]: unknown; 1258 1254 }; 1259 1255 }; 1260 1256 }; ··· 1276 1272 * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout. 1277 1273 */ 1278 1274 timeout?: number | false; 1279 - [key: string]: unknown | string | boolean | number | false | undefined; 1275 + [key: string]: unknown; 1280 1276 }; 1281 1277 }; 1282 1278
+16 -3
packages/openapi-ts/src/plugins/@hey-api/typescript/v1/toAst/object.ts
··· 64 64 hasPatterns || (!!addPropsObj && (addPropsObj.type !== 'never' || !indexSchemas.length)); 65 65 66 66 if (shouldCreateIndex) { 67 - // only inject additionalProperties when it's not "never" 68 67 const addProps = addPropsObj; 69 68 if (addProps && addProps.type !== 'never') { 70 - indexSchemas.unshift(addProps); 69 + if (addProps.type === 'unknown') { 70 + // When additionalProperties is unknown (e.g. `{}` or `true`), it already subsumes all 71 + // named property types, so we only need the additionalProperties schema itself (plus any 72 + // patternProperties) in the index signature. Including named property types would produce 73 + // a redundant, noisy union like `unknown | string | null | ...`. 74 + const patternSchemas: Array<IR.SchemaObject> = schema.patternProperties 75 + ? Object.values(schema.patternProperties) 76 + : []; 77 + indexSchemas = [addProps, ...patternSchemas]; 78 + } else { 79 + // For typed additionalProperties (e.g. `{ type: 'string' }`), named property types must 80 + // be included so that TypeScript's index signature constraint is satisfied. 81 + indexSchemas.unshift(addProps); 82 + } 71 83 } else if (!hasPatterns && !indexSchemas.length && addProps && addProps.type === 'never') { 72 84 // keep "never" only when there are NO patterns and NO explicit properties 73 85 indexSchemas = [addProps]; 74 86 } 75 87 76 - if (hasOptionalProperties) { 88 + // `unknown` already subsumes `undefined`, so no need to add it explicitly 89 + if (hasOptionalProperties && addProps?.type !== 'unknown') { 77 90 indexSchemas.push({ type: 'undefined' }); 78 91 } 79 92