Comparing version 1.11.6 to 1.11.7
"use strict"; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var z = __importStar(require(".")); | ||
var userUpdateSchema = z.object({ | ||
password: z | ||
.string() | ||
.min(6) | ||
.optional(), | ||
}); | ||
console.log(userUpdateSchema.parse({})); | ||
//# sourceMappingURL=playground.js.map |
@@ -7,7 +7,4 @@ import * as z from './base'; | ||
export declare class ZodUnion<T extends [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]> extends z.ZodType<T[number]['_type'], ZodUnionDef<T>> { | ||
toJSON: () => { | ||
t: z.ZodTypes.union; | ||
options: object[]; | ||
}; | ||
toJSON: () => object; | ||
static create: <T_1 extends [z.ZodTypeAny, z.ZodTypeAny, ...z.ZodTypeAny[]]>(types: T_1) => ZodUnion<T_1>; | ||
} |
{ | ||
"name": "zod", | ||
"version": "1.11.6", | ||
"version": "1.11.7", | ||
"description": "TypeScript-first schema declaration and validation library with static type inference", | ||
@@ -46,3 +46,3 @@ "main": "./lib/src/index.js", | ||
"prepublishOnly": "npm run build", | ||
"play": "nodemon -e ts -w . -x ts-node src/playground.ts" | ||
"play": "nodemon -e ts -w . -x ts-node src/playground.ts --project tsconfig.package.json" | ||
}, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
279428
3655