Skip to main content

Function: processReadonly()

processReadonly(schema, ctx, field, params): void

Defined in: packages/core/src/processors/wrappers.ts:126

Process z.readonly() — marks the field as read-only and delegates to the inner type. The rendered component receives readOnly: true via the base field props.

Parameters​

schema​

$ZodReadonly

The $ZodReadonly schema to unwrap.

ctx​

FormProcessorContext

The walker context providing the processor registry for inner type dispatch.

field​

FormField

The base FormField to mutate in-place.

params​

ProcessParams

Parent path metadata passed through to the inner processor.

Returns​

void