set
set<
T>(inner,opts?):TypeWrapper<Set<T>>
Defined in: .work/repos/edinburgh/src/types.ts:787
Create a Set 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 set elements.
Optional constraints (min/max length).
number
number
Returns
Section titled “Returns”TypeWrapper<Set<T>>
A set type instance.
Example
Section titled “Example”const stringSet = E.set(E.string);const boundedSet = E.set(E.number, {min: 1, max: 10});