diff --git a/packages/algoliasearch/src/builds/browser.ts b/packages/algoliasearch/src/builds/browser.ts index ba1113fd7..f8976e59d 100644 --- a/packages/algoliasearch/src/builds/browser.ts +++ b/packages/algoliasearch/src/builds/browser.ts @@ -349,11 +349,11 @@ export type SearchIndex = BaseSearchIndex & { query: string, requestOptions?: RequestOptions & SearchOptions ) => Readonly>>; - readonly findAnswers: ( + readonly findAnswers: ( query: string, queryLanguages: readonly string[], requestOptions?: RequestOptions & FindAnswersOptions - ) => Readonly>; + ) => Readonly>>; readonly searchForFacetValues: ( facetName: string, facetQuery: string, diff --git a/packages/algoliasearch/src/builds/browserLite.ts b/packages/algoliasearch/src/builds/browserLite.ts index 07249adee..3b0241902 100644 --- a/packages/algoliasearch/src/builds/browserLite.ts +++ b/packages/algoliasearch/src/builds/browserLite.ts @@ -89,11 +89,11 @@ export type SearchIndex = BaseSearchIndex & { facetQuery: string, requestOptions?: RequestOptions & SearchOptions ) => Readonly>; - readonly findAnswers: ( + readonly findAnswers: ( query: string, queryLanguages: readonly string[], requestOptions?: RequestOptions & FindAnswersOptions - ) => Readonly>; + ) => Readonly>>; }; export type SearchClient = BaseSearchClient & { diff --git a/packages/algoliasearch/src/builds/node.ts b/packages/algoliasearch/src/builds/node.ts index 74f3916f5..b1030fd6d 100644 --- a/packages/algoliasearch/src/builds/node.ts +++ b/packages/algoliasearch/src/builds/node.ts @@ -357,11 +357,11 @@ export type SearchIndex = BaseSearchIndex & { facetQuery: string, requestOptions?: RequestOptions & SearchOptions ) => Readonly>; - readonly findAnswers: ( + readonly findAnswers: ( query: string, queryLanguages: readonly string[], requestOptions?: RequestOptions & FindAnswersOptions - ) => Readonly>; + ) => Readonly>>; readonly batch: ( requests: readonly BatchRequest[], requestOptions?: RequestOptions