@legumeinfo/web-components
    Preparing search index...

    Type Alias SearchFunction<SearchData, SearchResult>

    SearchFunction: (
        searchData: SearchData & PaginatedSearchData,
        options: PaginatedSearchOptions,
    ) => Promise<PaginatedSearchResults<SearchResult>>

    The signature of the search function required by components that use the LisPaginatedSearchMixin mixin.

    Type Parameters

    • SearchData

      The type of data that will be given to the search function.

    • SearchResult

      The type that is expected to be in the results array of the PaginatedSearchResults instance resolved by the Promise returned by the search function.

    Type declaration