Effect CommunityEC
Effect Community2y ago
3 replies
qoouep

Type Error in `schema.minItems` vs. `schema.maxItems` Usage

Is schema.minItems typed incorrectly? I see the following:
Schema.Array(Schema.Unknown).pipe(Schema.minItems(1), Schema.minItems(1)); // type error (minItems is refine type)
Schema.Array(Schema.Unknown).pipe(Schema.maxItems(10), Schema.maxItems(10)); // not a type error (maxItems is filter type)
Was this page helpful?