Skip to main content

Function: processTuple()

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

Defined in: packages/core/src/processors/array.ts:62

Process z.tuple() — renders as a Fieldset where each tuple item becomes a child field. Tuple items are keyed by their index (e.g. "tupleField.0", "tupleField.1").

Parameters​

schema​

$ZodTuple

The $ZodTuple schema to process.

ctx​

FormProcessorContext

The walker context providing child processing.

field​

FormField

The base FormField to mutate in-place.

params​

ProcessParams

Parent path metadata for constructing item keys.

Returns​

void

Remarks​

Fixed-length tuples render all items eagerly. Rest elements are not currently supported and will produce an empty children array if present.