array
array<
T>(inner,opts?):TypeWrapper<T[]>
Defined in: .work/repos/edinburgh/src/types.ts:770
Create an array type wrapper with optional length constraints.
Type Parameters
Section titled “Type Parameters”T
The element type.
Parameters
Section titled “Parameters”TypeWrapper<T>
Type wrapper for array elements.
Optional constraints (min/max length).
number
number
Returns
Section titled “Returns”TypeWrapper<T[]>
An array type instance.
Example
Section titled “Example”const stringArray = E.array(E.string);const boundedArray = E.array(E.number, {min: 1, max: 10});