@mantlebee/ts-data
    Preparing search index...

    Type Alias LookupReaderOptions<TItem, TValueField>

    Fields a reader-based lookup source works on, see createLookupSource.

    type LookupReaderOptions<
        TItem = Any,
        TValueField extends KeyOf<TItem> = KeyOf<TItem>,
    > = {
        textField: KeyOf<TItem>;
        valueField: TValueField;
    }

    Type Parameters

    • TItem = Any

      Type of the items.

    • TValueField extends KeyOf<TItem> = KeyOf<TItem>

      Field holding the key of an item.

    Index
    textField: KeyOf<TItem>

    Field the contains filter of search is written on.

    valueField: TValueField

    Field holding the key: what valueOf returns and the in filter of resolve is written on.