File tree Expand file tree Collapse file tree
packages/algoliasearch/src/builds Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,11 +349,11 @@ export type SearchIndex = BaseSearchIndex & {
349349 query : string ,
350350 requestOptions ?: RequestOptions & SearchOptions
351351 ) => Readonly < Promise < SearchResponse < TObject > > > ;
352- readonly findAnswers : (
352+ readonly findAnswers : < TObject > (
353353 query : string ,
354354 queryLanguages : readonly string [ ] ,
355355 requestOptions ?: RequestOptions & FindAnswersOptions
356- ) => Readonly < Promise < FindAnswersResponse > > ;
356+ ) => Readonly < Promise < FindAnswersResponse < TObject > > > ;
357357 readonly searchForFacetValues : (
358358 facetName : string ,
359359 facetQuery : string ,
Original file line number Diff line number Diff line change @@ -89,11 +89,11 @@ export type SearchIndex = BaseSearchIndex & {
8989 facetQuery : string ,
9090 requestOptions ?: RequestOptions & SearchOptions
9191 ) => Readonly < Promise < SearchForFacetValuesResponse > > ;
92- readonly findAnswers : (
92+ readonly findAnswers : < TObject > (
9393 query : string ,
9494 queryLanguages : readonly string [ ] ,
9595 requestOptions ?: RequestOptions & FindAnswersOptions
96- ) => Readonly < Promise < FindAnswersResponse > > ;
96+ ) => Readonly < Promise < FindAnswersResponse < TObject > > > ;
9797} ;
9898
9999export type SearchClient = BaseSearchClient & {
Original file line number Diff line number Diff line change @@ -357,11 +357,11 @@ export type SearchIndex = BaseSearchIndex & {
357357 facetQuery : string ,
358358 requestOptions ?: RequestOptions & SearchOptions
359359 ) => Readonly < Promise < SearchForFacetValuesResponse > > ;
360- readonly findAnswers : (
360+ readonly findAnswers : < TObject > (
361361 query : string ,
362362 queryLanguages : readonly string [ ] ,
363363 requestOptions ?: RequestOptions & FindAnswersOptions
364- ) => Readonly < Promise < FindAnswersResponse > > ;
364+ ) => Readonly < Promise < FindAnswersResponse < TObject > > > ;
365365 readonly batch : (
366366 requests : readonly BatchRequest [ ] ,
367367 requestOptions ?: RequestOptions
You can’t perform that action at this time.
0 commit comments