diff --git a/.vscode/settings.json b/.vscode/settings.json index e029a67c6..e11acc7e2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,12 @@ "**/*.map": true, "**/*.mjs": true, "**/*.mts": true, + "**/.vitepress/dist": true, + "**/.mypy_cache": true, + "**/__snapshots__": true, + "**/coverage": true, + "**/openapi-ts-tests/**/generated": true, + "**/openapi-ts-tests/**/.gen": true, "**/*.tsbuildinfo": true }, "typescript.preferences.autoImportFileExcludePatterns": ["dist/**"], diff --git a/docs/openapi-ts/clients/angular.md b/docs/openapi-ts/clients/angular.md index d8ea581c3..a9bdacfd5 100644 --- a/docs/openapi-ts/clients/angular.md +++ b/docs/openapi-ts/clients/angular.md @@ -251,7 +251,7 @@ You might be also interested in the [Angular](/openapi-ts/plugins/angular) plugi ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-angular/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-angular/types.ts) interface. diff --git a/docs/openapi-ts/clients/angular/v19.md b/docs/openapi-ts/clients/angular/v19.md index 235abafac..4f40d0e8a 100644 --- a/docs/openapi-ts/clients/angular/v19.md +++ b/docs/openapi-ts/clients/angular/v19.md @@ -251,7 +251,7 @@ You might be also interested in the [Angular](/openapi-ts/plugins/angular/v19) p ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-angular/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-angular/types.ts) interface. diff --git a/docs/openapi-ts/clients/axios.md b/docs/openapi-ts/clients/axios.md index 16c4b3855..a31046b51 100644 --- a/docs/openapi-ts/clients/axios.md +++ b/docs/openapi-ts/clients/axios.md @@ -246,7 +246,7 @@ You can use any of the approaches mentioned in [Configuration](#configuration), ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-axios/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-axios/types.ts) interface. diff --git a/docs/openapi-ts/clients/fetch.md b/docs/openapi-ts/clients/fetch.md index 48cb0b225..99fcd0126 100644 --- a/docs/openapi-ts/clients/fetch.md +++ b/docs/openapi-ts/clients/fetch.md @@ -307,7 +307,7 @@ You can use any of the approaches mentioned in [Configuration](#configuration), ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-fetch/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-fetch/types.ts) interface. diff --git a/docs/openapi-ts/clients/ky.md b/docs/openapi-ts/clients/ky.md index eb2568194..e05a48786 100644 --- a/docs/openapi-ts/clients/ky.md +++ b/docs/openapi-ts/clients/ky.md @@ -305,7 +305,7 @@ You can use any of the approaches mentioned in [Configuration](#configuration), ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-ky/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-ky/types.ts) interface. diff --git a/docs/openapi-ts/clients/next-js.md b/docs/openapi-ts/clients/next-js.md index 49461db3d..50ef19b7a 100644 --- a/docs/openapi-ts/clients/next-js.md +++ b/docs/openapi-ts/clients/next-js.md @@ -290,7 +290,7 @@ You can use any of the approaches mentioned in [Configuration](#configuration), ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-next/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-next/types.ts) interface. diff --git a/docs/openapi-ts/clients/nuxt.md b/docs/openapi-ts/clients/nuxt.md index 02845a98f..ef8657b6a 100644 --- a/docs/openapi-ts/clients/nuxt.md +++ b/docs/openapi-ts/clients/nuxt.md @@ -261,7 +261,7 @@ You can use any of the approaches mentioned in [Configuration](#configuration), ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-nuxt/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-nuxt/types.ts) interface. diff --git a/docs/openapi-ts/clients/ofetch.md b/docs/openapi-ts/clients/ofetch.md index 150ef248a..79e4daeba 100644 --- a/docs/openapi-ts/clients/ofetch.md +++ b/docs/openapi-ts/clients/ofetch.md @@ -344,7 +344,7 @@ You can use any of the approaches mentioned in [Configuration](#configuration), ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-ofetch/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/client-ofetch/types.ts) interface. diff --git a/docs/openapi-ts/configuration.md b/docs/openapi-ts/configuration.md index b9198c2bf..93b0a6da8 100644 --- a/docs/openapi-ts/configuration.md +++ b/docs/openapi-ts/configuration.md @@ -242,7 +242,7 @@ src/ ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/config/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/config/types.ts) interface. diff --git a/docs/openapi-ts/plugins/angular.md b/docs/openapi-ts/plugins/angular.md index ff562c3aa..0e04c8a25 100644 --- a/docs/openapi-ts/plugins/angular.md +++ b/docs/openapi-ts/plugins/angular.md @@ -116,7 +116,7 @@ export default { ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@angular/common/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@angular/common/types.ts) interface. diff --git a/docs/openapi-ts/plugins/angular/v19.md b/docs/openapi-ts/plugins/angular/v19.md index 3ef42cc3a..e59febbeb 100644 --- a/docs/openapi-ts/plugins/angular/v19.md +++ b/docs/openapi-ts/plugins/angular/v19.md @@ -116,7 +116,7 @@ export default { ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@angular/common/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@angular/common/types.ts) interface. diff --git a/docs/openapi-ts/plugins/custom.md b/docs/openapi-ts/plugins/custom.md index c300e36ab..5e3dc5f4c 100644 --- a/docs/openapi-ts/plugins/custom.md +++ b/docs/openapi-ts/plugins/custom.md @@ -30,11 +30,11 @@ export type { MyPlugin } from './types'; ## TypeScript -`index.ts` references two files, so we need to create them. `types.d.ts` contains the TypeScript interface for your plugin options. It must have the reserved `name` and `output` fields, everything else will become user-configurable options. +`index.ts` references two files, so we need to create them. `types.ts` contains the TypeScript interface for your plugin options. It must have the reserved `name` and `output` fields, everything else will become user-configurable options. ::: code-group -```ts [types.d.ts] +```ts [types.ts] import type { DefinePlugin } from '@hey-api/openapi-ts'; export type UserConfig = { diff --git a/docs/openapi-ts/plugins/fastify.md b/docs/openapi-ts/plugins/fastify.md index dcf04053b..2e1fb493d 100644 --- a/docs/openapi-ts/plugins/fastify.md +++ b/docs/openapi-ts/plugins/fastify.md @@ -97,7 +97,7 @@ export default { ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/fastify/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/fastify/types.ts) interface. diff --git a/docs/openapi-ts/plugins/pinia-colada.md b/docs/openapi-ts/plugins/pinia-colada.md index 6c3c94cdb..980e2bb3d 100644 --- a/docs/openapi-ts/plugins/pinia-colada.md +++ b/docs/openapi-ts/plugins/pinia-colada.md @@ -262,7 +262,7 @@ You can customize the naming and casing pattern for `mutationOptions` functions ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@pinia/colada/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@pinia/colada/types.ts) interface. diff --git a/docs/openapi-ts/plugins/schemas.md b/docs/openapi-ts/plugins/schemas.md index 7abc2609f..01bc7fd48 100644 --- a/docs/openapi-ts/plugins/schemas.md +++ b/docs/openapi-ts/plugins/schemas.md @@ -92,7 +92,7 @@ if (userInput.length > maxInputLength) { ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/schemas/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/schemas/types.ts) interface. diff --git a/docs/openapi-ts/plugins/sdk.md b/docs/openapi-ts/plugins/sdk.md index 68ffc157a..8f50d212b 100644 --- a/docs/openapi-ts/plugins/sdk.md +++ b/docs/openapi-ts/plugins/sdk.md @@ -544,7 +544,7 @@ Enabling examples does not produce visible output on its own. Examples are writt ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/sdk/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/sdk/types.ts) interface. diff --git a/docs/openapi-ts/plugins/tanstack-query.md b/docs/openapi-ts/plugins/tanstack-query.md index 4e0d77fe9..3c27a4def 100644 --- a/docs/openapi-ts/plugins/tanstack-query.md +++ b/docs/openapi-ts/plugins/tanstack-query.md @@ -608,7 +608,7 @@ const query = useQuery( ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@tanstack/react-query/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@tanstack/react-query/types.ts) interface. diff --git a/docs/openapi-ts/plugins/transformers.md b/docs/openapi-ts/plugins/transformers.md index 276196b1d..4f8814ced 100644 --- a/docs/openapi-ts/plugins/transformers.md +++ b/docs/openapi-ts/plugins/transformers.md @@ -151,6 +151,6 @@ export type GetFooResponse = Baz; ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/transformers/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/transformers/types.ts) interface. diff --git a/docs/openapi-ts/plugins/typescript.md b/docs/openapi-ts/plugins/typescript.md index 92a87a333..9589724bb 100644 --- a/docs/openapi-ts/plugins/typescript.md +++ b/docs/openapi-ts/plugins/typescript.md @@ -132,7 +132,7 @@ We recommend exporting enums as plain JavaScript objects. [TypeScript enums](htt ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/typescript/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/typescript/types.ts) interface. diff --git a/docs/openapi-ts/plugins/valibot.md b/docs/openapi-ts/plugins/valibot.md index da77f95fe..b38964a3f 100644 --- a/docs/openapi-ts/plugins/valibot.md +++ b/docs/openapi-ts/plugins/valibot.md @@ -213,7 +213,7 @@ You can further customize this plugin's behavior using [resolvers](/openapi-ts/p ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/valibot/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/valibot/types.ts) interface. diff --git a/docs/openapi-ts/plugins/zod.md b/docs/openapi-ts/plugins/zod.md index df445e65d..d79e7d0ae 100644 --- a/docs/openapi-ts/plugins/zod.md +++ b/docs/openapi-ts/plugins/zod.md @@ -305,7 +305,7 @@ You can further customize this plugin's behavior using [resolvers](/openapi-ts/p ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/zod/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/zod/types.ts) interface. diff --git a/docs/openapi-ts/plugins/zod/mini.md b/docs/openapi-ts/plugins/zod/mini.md index a035da3e4..761db49fd 100644 --- a/docs/openapi-ts/plugins/zod/mini.md +++ b/docs/openapi-ts/plugins/zod/mini.md @@ -318,7 +318,7 @@ You can further customize this plugin's behavior using [resolvers](/openapi-ts/p ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/zod/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/zod/types.ts) interface. diff --git a/docs/openapi-ts/plugins/zod/v3.md b/docs/openapi-ts/plugins/zod/v3.md index c13c7ea3f..33bc1a397 100644 --- a/docs/openapi-ts/plugins/zod/v3.md +++ b/docs/openapi-ts/plugins/zod/v3.md @@ -316,7 +316,7 @@ You can further customize this plugin's behavior using [resolvers](/openapi-ts/p ## API -You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/zod/types.d.ts) interface. +You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/zod/types.ts) interface.