Creates a value range factory with custom cardinality constraints.
Returns a factory function that creates ranges with the specified minimum and maximum counts.
The minimum count constraint type
The maximum count constraint type
Minimum number of values in the linked set
Optional
Maximum number of values in the linked set
A factory function that creates ranges with the specified cardinality
const twoToFive = cardinality(2, 5);const tags = property(twoToFive(string())); Copy
const twoToFive = cardinality(2, 5);const tags = property(twoToFive(string()));
Creates a value range factory with custom cardinality constraints.
Returns a factory function that creates ranges with the specified minimum and maximum counts.