Sanity Library Reference Docs
    Preparing search index...

    Inclusive bounds for string, text, number, or progress values. String/text bounds count characters and must be non-negative integers. Number bounds are finite numeric values. Progress bounds may only narrow its inclusive 0–100 range.

    Supply at least one bound. When both are present, min must not exceed max. Null values remain allowed unless an input is required separately.

    interface ScalarValidation {
        max?: number;
        min?: number;
    }
    Index

    Properties

    Properties

    max?: number
    min?: number