Skip to content

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.

T

The element type.

TypeWrapper<T>

Type wrapper for set elements.

Optional constraints (min/max length).

number

number

TypeWrapper<Set<T>>

A set type instance.

const stringSet = E.set(E.string);
const boundedSet = E.set(E.number, {min: 1, max: 10});