@metreeca/blue - v0.12.0
    Preparing search index...

    Type Alias StringLengthConstraints

    Length bounds accepted by the string shape factories.

    Bounds the number of characters admitted by a shape, independently of its lexical format. Accepted on its own by the free-form text and markdown factories, whose content has no fixed length, and included in the full StringConstraints set.

    type StringLengthConstraints = {
        minLength?: number;
        maxLength?: number;
    }
    Index

    Properties

    minLength?: number

    Minimum string length in characters.

    Inheritance — child may only raise the minimum length.

    undefined (no minimum length)

    maxLength?: number

    Maximum string length in characters.

    Inheritance — child may only lower the maximum length.

    undefined (no maximum length)