@nuxtjs/algolia
Version:
Algolia module for Nuxt
9 lines (8 loc) • 394 B
TypeScript
import type { AsyncData } from '#app';
import type { RequestOptionsObject, SearchResponse } from '../../types';
export type AsyncSearchParams = {
query: string;
indexName?: string;
key?: string;
} & RequestOptionsObject;
export declare function useAsyncAlgoliaSearch({ query, requestOptions, indexName, key }: AsyncSearchParams): Promise<AsyncData<SearchResponse<unknown>, Error>>;