This commit is contained in:
@@ -63,6 +63,7 @@ export const ZodSchemaObject = <
|
||||
...[values, params]: CreateArgs<PartialValues>
|
||||
) {
|
||||
const t = implStaticInstantiableThis(ZodSchemaObjectImpl, this)
|
||||
|
||||
return t
|
||||
.pipeSchemaIntoInstance(t.schemaWithDefaults)
|
||||
.parse(values, params)
|
||||
@@ -75,6 +76,7 @@ export const ZodSchemaObject = <
|
||||
...[values, params]: CreateArgs<PartialValues>
|
||||
) {
|
||||
const t = implStaticInstantiableThis(ZodSchemaObjectImpl, this)
|
||||
|
||||
return t
|
||||
.pipeSchemaIntoInstance(t.schemaWithDefaults)
|
||||
.parseAsync(values, params)
|
||||
@@ -87,6 +89,7 @@ export const ZodSchemaObject = <
|
||||
...[values, params]: CreateArgs<PartialValues>
|
||||
) {
|
||||
const t = implStaticInstantiableThis(ZodSchemaObjectImpl, this)
|
||||
|
||||
return parseZodSchemaEffect(
|
||||
t.pipeSchemaIntoInstance(t.schemaWithDefaults),
|
||||
values,
|
||||
|
||||
Reference in New Issue
Block a user