StringConstraintViolation
A failed string constraint, discriminated by which rule was violated.
minLength / maxLength carry the offending bound and pattern carries the source so callers can render them.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/string-constraints.ts - Source link:
src/core/schema/string-constraints.ts:50
Signatures
ts
type StringConstraintViolation = { kind: "nonEmpty"; } | { bound: number; kind: "minLength"; } | { bound: number; kind: "maxLength"; } | { kind: "pattern"; pattern: string; };