From a935d88a7d214303a0fed517ce085b5e0699aea7 Mon Sep 17 00:00:00 2001 From: Eunjae Lee Date: Wed, 25 Nov 2020 12:14:36 +0100 Subject: [PATCH] fix(findAnswers): fix typing (#1233) --- packages/algoliasearch/src/builds/browser.ts | 4 ++-- packages/algoliasearch/src/builds/browserLite.ts | 4 ++-- packages/algoliasearch/src/builds/node.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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