Type Alias NumericConstraintViolation
NumericConstraintViolation: Readonly<
| {
constraint: | "finite"
| "int"
| "safeInteger"
| "nonZero"
| "negative"
| "nonNegative"
| "positive"
| "nonPositive";
value: true;
}
| {
constraint: | "gt"
| "gte"
| "min"
| "lt"
| "lte"
| "max"
| "multipleOf"
| "step";
value: string;
},
>
Describes which numeric constraint (see the
number/bigintcodecs) a value failed. Range bounds are stringified so a single type can describe bothnumberandbigintviolations;valuedoubles as the value shown in the constructor-time "defaultValue ... does not satisfy the constraint ..." message.