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