@kubb/plugin-zod 4.37.3 → 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.
- package/dist/generators.d.ts +1 -1
- package/package.json +5 -5
package/dist/generators.d.ts
CHANGED
|
@@ -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-zod",
|
|
3
|
-
"version": "4.37.
|
|
3
|
+
"version": "4.37.4",
|
|
4
4
|
"description": "Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@kubb/react-fabric": "0.14.0",
|
|
81
81
|
"remeda": "^2.33.6",
|
|
82
|
-
"@kubb/core": "4.37.
|
|
83
|
-
"@kubb/oas": "4.37.
|
|
84
|
-
"@kubb/plugin-oas": "4.37.
|
|
85
|
-
"@kubb/plugin-ts": "4.37.
|
|
82
|
+
"@kubb/core": "4.37.4",
|
|
83
|
+
"@kubb/oas": "4.37.4",
|
|
84
|
+
"@kubb/plugin-oas": "4.37.4",
|
|
85
|
+
"@kubb/plugin-ts": "4.37.4"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@asteasolutions/zod-to-openapi": "^8.5.0",
|