NumberConstraintViolation
A failed numeric constraint, discriminated by which rule was violated.
min / max carry the offending bound so callers can render it.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/number-constraints.ts - Source link:
src/core/schema/number-constraints.ts:48
Signatures
ts
type NumberConstraintViolation = { kind: "finite"; } | { kind: "int"; } | { bound: number; kind: "min"; } | { bound: number; kind: "max"; };