Sanity Library Reference Docs
    Preparing search index...

    Interface ValuelessSearchOperatorBuilder<TType>Alpha

    interface ValuelessSearchOperatorBuilder<TType extends string> {
        buttonValueComponent?: never;
        descriptionKey: `search.operator.${Lowercase<string>}.description`;
        groqFilter: (params: ValuelessSearchOperatorParams) => string;
        icon?: ComponentType;
        initialValue?: never;
        inputComponent?: never;
        nameKey: `search.operator.${Lowercase<string>}.name`;
        type: TType;
    }

    Type Parameters

    • TType extends string

    Hierarchy (View Summary)

    Index

    Properties

    buttonValueComponent?: never
    descriptionKey: `search.operator.${Lowercase<string>}.description`

    i18n resource key for the "name", eg quantity is or contains

    groqFilter: (params: ValuelessSearchOperatorParams) => string
    icon?: ComponentType

    icon for explaining the operator (React component)

    initialValue?: never
    inputComponent?: never
    nameKey: `search.operator.${Lowercase<string>}.name`

    i18n resource key for the "name", eg quantity is or contains

    type: TType

    name/type of operator, eg arrayCountEqual or numberGt