ts-fortress
    Preparing search index...

    Type Alias StringConstraintViolation

    StringConstraintViolation: Readonly<
        | { constraint: "nonempty"
        | "lowercase"
        | "uppercase"; value: true }
        | { constraint: "minLength" | "maxLength"; value: number }
        | { constraint: "startsWith" | "endsWith" | "includes"; value: string }
        | { constraint: "regex"; value: string },
    >

    Describes which string constraint (see the string codec) a value failed, together with the constraint's configured value. value doubles as the value shown in the constructor-time "defaultValue ... does not satisfy the constraint ..." message, so it mirrors the raw constraint input (the flag constraints carry true, regex carries its source).