Comparing version 1.7.1 to 1.7.2
@@ -6,2 +6,3 @@ import * as z from './base'; | ||
import { objectUtil } from '../helpers/objectUtil'; | ||
import { partialUtil } from '../helpers/partialUtil'; | ||
export interface ZodObjectDef<T extends z.ZodRawShape = z.ZodRawShape, Params extends ZodObjectParams = ZodObjectParams> extends z.ZodTypeDef { | ||
@@ -48,15 +49,3 @@ t: z.ZodTypes.object; | ||
partial: () => ZodObject<{ [k in keyof T]: ZodUnion<[T[k], ZodUndefined]>; }, Params>; | ||
deepPartial: () => ZodObject<{ [k in keyof T]: { | ||
object: T[k] extends ZodObject<infer Shape, infer Params_1> ? ZodUnion<[ZodObject<{ [k in keyof Shape]: { | ||
object: Shape[k] extends ZodObject<infer Shape, infer Params_1> ? ZodUnion<[ZodObject<any, Params_1>, ZodUndefined]> : never; | ||
rest: ZodUnion<[Shape[k], ZodUndefined]>; | ||
}[Shape[k] extends ZodObject<any, { | ||
strict: true; | ||
}> ? "object" : "rest"]; }, Params_1>, ZodUndefined]> : never; | ||
rest: ZodUnion<[T[k], ZodUndefined]>; | ||
}[T[k] extends ZodObject<any, { | ||
strict: true; | ||
}> ? "object" : "rest"]; }, { | ||
strict: true; | ||
}>; | ||
deepPartial: () => partialUtil.RootDeepPartial<ZodObject<T>>; | ||
static create: <T_1 extends z.ZodRawShape>(shape: T_1) => ZodObject<T_1, { | ||
@@ -63,0 +52,0 @@ strict: true; |
{ | ||
"name": "zod", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "TypeScript-first schema declaration and validation library with static type inference", | ||
@@ -5,0 +5,0 @@ "main": "./lib/src/index.js", |
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
240994
3400