@kubb/plugin-client 4.37.2 → 4.37.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -477,7 +477,7 @@ type SchemaV2Props<TOptions extends PluginFactoryOptions> = {
477
477
  node: SchemaNode;
478
478
  };
479
479
  type SchemaProps<TOptions extends PluginFactoryOptions, TVersion extends Version = '1'> = TVersion extends '2' ? SchemaV2Props<TOptions> : SchemaV1Props<TOptions>;
480
- type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion>;
480
+ type Generator<TOptions extends PluginFactoryOptions, TVersion extends Version = Version> = TVersion extends Version ? CoreGenerator<TOptions, TVersion> | ReactGenerator<TOptions, TVersion> : never;
481
481
  //#endregion
482
482
  //#region ../plugin-oas/src/generators/createReactGenerator.d.ts
483
483
  type ReactGenerator<TOptions extends PluginFactoryOptions, TVersion extends Version> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-client",
3
- "version": "4.37.2",
3
+ "version": "4.37.4",
4
4
  "description": "API client generator plugin for Kubb, creating type-safe HTTP clients (Axios, Fetch) from OpenAPI specifications for making API requests.",
5
5
  "keywords": [
6
6
  "api-client",
@@ -110,11 +110,11 @@
110
110
  "dependencies": {
111
111
  "@kubb/fabric-core": "0.14.0",
112
112
  "@kubb/react-fabric": "0.14.0",
113
- "@kubb/core": "4.37.2",
114
- "@kubb/oas": "4.37.2",
115
- "@kubb/plugin-oas": "4.37.2",
116
- "@kubb/plugin-ts": "4.37.2",
117
- "@kubb/plugin-zod": "4.37.2"
113
+ "@kubb/core": "4.37.4",
114
+ "@kubb/oas": "4.37.4",
115
+ "@kubb/plugin-oas": "4.37.4",
116
+ "@kubb/plugin-ts": "4.37.4",
117
+ "@kubb/plugin-zod": "4.37.4"
118
118
  },
119
119
  "devDependencies": {
120
120
  "axios": "^1.13.6",