This commit is contained in:
@@ -24,7 +24,7 @@ export const ZodSchemaObject = <
|
||||
static readonly schema = stripZodObjectDefaults(schemaWithDefaults)
|
||||
static readonly schemaWithDefaults = schemaWithDefaults
|
||||
|
||||
static pipeSchemaToInstance<
|
||||
static pipeSchemaIntoInstance<
|
||||
Instance extends Values,
|
||||
|
||||
SchemaT extends z.ZodRawShape,
|
||||
@@ -50,7 +50,7 @@ export const ZodSchemaObject = <
|
||||
...[values, params]: CreateArgs<PartialValues>
|
||||
) {
|
||||
return this
|
||||
.pipeSchemaToInstance(this.schemaWithDefaults)
|
||||
.pipeSchemaIntoInstance(this.schemaWithDefaults)
|
||||
.parse(values, params)
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export const ZodSchemaObject = <
|
||||
...[values, params]: CreateArgs<PartialValues>
|
||||
) {
|
||||
return this
|
||||
.pipeSchemaToInstance(this.schemaWithDefaults)
|
||||
.pipeSchemaIntoInstance(this.schemaWithDefaults)
|
||||
.parseAsync(values, params)
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ export const ZodSchemaObject = <
|
||||
...[values, params]: CreateArgs<PartialValues>
|
||||
) {
|
||||
return parseZodSchemaEffect(
|
||||
this.pipeSchemaToInstance(this.schemaWithDefaults),
|
||||
this.pipeSchemaIntoInstance(this.schemaWithDefaults),
|
||||
values,
|
||||
params,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user