Function: processDefault()
processDefault(
schema,ctx,field,params):void
Defined in: packages/core/src/processors/wrappers.ts:94
Process z.default() / z.prefault() — extracts the default value and delegates to the inner type.
Sets field.defaultValue from the schema's default (evaluating functions eagerly).
Parameters
schema
$ZodDefault<$ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>> | $ZodPrefault<$ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>
The $ZodDefault or $ZodPrefault schema to unwrap.
ctx
The walker context providing the processor registry for inner type dispatch.
field
The base FormField to mutate in-place.
params
Parent path metadata passed through to the inner processor.
Returns
void