@maplibre/maplibre-gl-geocoder
    Preparing search index...

    Interface Typeahead<TItem>

    interface Typeahead<TItem> {
        data: TItem[];
        options: TypeaheadOptions;
        query: string;
        selected: TItem;
        clear(): void;
        getItemValue(item: TItem): string;
        render(item: TItem): string;
        renderError(error: string): void;
        select(): void;
        update(data: TItem[]): void;
    }

    Type Parameters

    • TItem
    Index

    Properties

    data: TItem[]
    query: string
    selected: TItem

    Methods