GeoLeaf Core API - v3.0.0
    Preparing search index...

    One entry of a batch validation: the value, the validator to run on it, and how to name it.

    interface ValidateBatchItem {
        value: unknown;
        validator: (
            value: unknown,
            options?: Record<string, unknown>,
        ) => { valid: boolean; error?: string | null };
        options?: Record<string, unknown>;
        label?: string;
    }
    Index

    Properties

    value: unknown

    The value to check.

    validator: (
        value: unknown,
        options?: Record<string, unknown>,
    ) => { valid: boolean; error?: string | null }

    Validator applied to value; must return the { valid, error } shape.

    options?: Record<string, unknown>

    Options forwarded to validator.

    label?: string

    Human-readable name used to prefix this entry's message in the aggregate result.