0.1.3 #4
@@ -19,8 +19,9 @@ export const ZodSchemaObject = <
|
||||
>(
|
||||
schemaWithDefaults: z.ZodObject<T, "strip", Catchall, Values, PartialValues>,
|
||||
) => trait
|
||||
.implement(Super => class ZodSchemaObjectImpl extends Super {
|
||||
static readonly schema = stripZodObjectDefaults<T, "strip", Catchall, Values, PartialValues>(schemaWithDefaults)
|
||||
.implement(Super => {
|
||||
class ZodSchemaObjectImpl extends Super {
|
||||
static readonly schema = stripZodObjectDefaults(schemaWithDefaults)
|
||||
static readonly schemaWithDefaults = schemaWithDefaults
|
||||
|
||||
static transform<
|
||||
@@ -82,6 +83,9 @@ export const ZodSchemaObject = <
|
||||
params,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
return ZodSchemaObjectImpl
|
||||
})
|
||||
.build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user