@onetyped/zod
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -299,2 +299,5 @@ // src/from-schema.ts | ||
} | ||
case "iterator": { | ||
return z2.unknown(); | ||
} | ||
} | ||
@@ -366,4 +369,7 @@ }; | ||
} | ||
case "iterator": { | ||
return createZodMethod("unknown"); | ||
} | ||
case "object": { | ||
const propertySchemas = mapObjectNode2(node, toZodString).map(([key, zodType]) => `${key}: ${zodType}`).join(", "); | ||
const propertySchemas = mapObjectNode2(node, toZodString).map(([key, zodType]) => `${JSON.stringify(key)}: ${zodType}`).join(", "); | ||
return createZodMethod("object", `{ ${propertySchemas} }`); | ||
@@ -370,0 +376,0 @@ } |
{ | ||
"name": "@onetyped/zod", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"type": "module", | ||
@@ -44,3 +44,3 @@ "description": "onetyped Zod integration", | ||
"devDependencies": { | ||
"@onetyped/core": "0.0.9", | ||
"@onetyped/core": "0.0.10", | ||
"@trpc-labs/eslint-config": "0.1.1", | ||
@@ -47,0 +47,0 @@ "@trpc-labs/tsconfig": "0.1.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28564
868