Skip to content

NumberConstraintViolation

A failed numeric constraint, discriminated by which rule was violated.

min / max carry the offending bound so callers can render it.

Signatures

ts
type NumberConstraintViolation = { kind: "finite"; } | { kind: "int"; } | { bound: number; kind: "min"; } | { bound: number; kind: "max"; };

See Also

Released under the MIT License.