Numbers are represented in Zod schema as either a number (z.number()),
or a Float64Array (z.instanceof(Float64Array)).
Arguments
- n
The length of the numeric vector. If n = 1 then a single number is expected. If n = 0 then any length is expected. If n > 1 then a numeric vector of length n is expected.
Value
A ts object that accepts numeric scalars or vectors of length n.