Skip to main content

Function: processNumber()

processNumber(schema, _ctx, field, _params): void

Defined in: packages/core/src/processors/number.ts:16

Process z.number() / z.bigint() — renders as a numeric Input with type="number". Extracts min/max from the constraint bag and detects integer constraints from def.checks. Sets step=1 when an integer constraint is detected.

Parameters

schema

$ZodNumber<unknown> | $ZodBigInt<unknown>

The $ZodNumber or $ZodBigInt schema to process.

_ctx

FormProcessorContext

The walker context (unused for number processing).

field

FormField

The base FormField to mutate in-place.

_params

ProcessParams

Unused; included for processor signature conformance.

Returns

void