@onetyped/zod
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -13,2 +13,3 @@ // src/from-schema.ts | ||
nullable, | ||
nullType, | ||
number, | ||
@@ -21,2 +22,3 @@ object, | ||
tuple, | ||
undefinedType, | ||
union, | ||
@@ -38,2 +40,8 @@ unknown | ||
} | ||
case ZodFirstPartyTypeKind.ZodNull: { | ||
return nullType(); | ||
} | ||
case ZodFirstPartyTypeKind.ZodUndefined: { | ||
return undefinedType(); | ||
} | ||
case ZodFirstPartyTypeKind.ZodUnknown: { | ||
@@ -131,3 +139,3 @@ return unknown(); | ||
case "regexp": { | ||
return z2.custom((data) => data instanceof RegExp); | ||
return z2.instanceof(RegExp); | ||
} | ||
@@ -216,3 +224,3 @@ case "bigint": { | ||
case "regexp": { | ||
return createZodMethod("custom", "(data) => data instanceof RegExp"); | ||
return createZodMethod("instanceof", "RegExp"); | ||
} | ||
@@ -219,0 +227,0 @@ case "bigint": { |
{ | ||
"name": "@onetyped/zod", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "onetyped Zod integration", |
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
20972
564