Sanity Library Reference Docs
    Preparing search index...

    Interface GeopointRule

    interface GeopointRule {
        custom: <LenientFieldValue extends GeopointValue>(
            fn: CustomValidator<LenientFieldValue>,
        ) => GeopointRule;
        error: (message?: string | LocalizedValidationMessages) => GeopointRule;
        info: (message?: string | LocalizedValidationMessages) => GeopointRule;
        required: () => GeopointRule;
        valueOfField: (path: string | string[]) => FieldReference;
        warning: (message?: string | LocalizedValidationMessages) => GeopointRule;
    }

    Hierarchy (View Summary)

    Index

    Properties

    custom: <LenientFieldValue extends GeopointValue>(
        fn: CustomValidator<LenientFieldValue>,
    ) => GeopointRule
    error: (message?: string | LocalizedValidationMessages) => GeopointRule
    info: (message?: string | LocalizedValidationMessages) => GeopointRule
    required: () => GeopointRule
    valueOfField: (path: string | string[]) => FieldReference
    warning: (message?: string | LocalizedValidationMessages) => GeopointRule