ts-fortress
    Preparing search index...

    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 / bigint codecs) a value failed. Range bounds are stringified so a single type can describe both number and bigint violations; value doubles as the value shown in the constructor-time "defaultValue ... does not satisfy the constraint ..." message.