File tree 3 files changed +7
-7
lines changed
packages/recommend/src/types
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- export type TrendingFacetHit < TObject > = {
1
+ export type TrendingFacetHit = {
2
2
readonly _score : number ;
3
3
readonly facetName : string ;
4
- readonly facetValue : TObject ;
4
+ readonly facetValue : string ;
5
5
} ;
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import { SearchResponse } from '@algolia/client-search';
2
2
3
3
import { TrendingFacetHit } from './TrendingFacetHit' ;
4
4
5
- export type TrendingFacetsResponse < TObject > = Omit < SearchResponse < TObject > , 'hits' > & {
6
- readonly hits : ReadonlyArray < TrendingFacetHit < TObject > > ;
5
+ export type TrendingFacetsResponse = Omit < SearchResponse , 'hits' > & {
6
+ readonly hits : readonly TrendingFacetHit [ ] ;
7
7
} ;
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import { TrendingFacetsResponse } from './TrendingFacetsResponse';
11
11
import { TrendingItemsQuery } from './TrendingItemsQuery' ;
12
12
import { TrendingQuery } from './TrendingQuery' ;
13
13
14
- export type RecommendTrendingFacetsQueriesResponse < TObject > = {
14
+ export type RecommendTrendingFacetsQueriesResponse = {
15
15
/**
16
16
* The list of results.
17
17
*/
18
- readonly results : ReadonlyArray < TrendingFacetsResponse < TObject > > ;
18
+ readonly results : readonly TrendingFacetsResponse [ ] ;
19
19
} ;
20
20
21
21
export type RecommendQueriesResponse < TObject > = {
@@ -64,7 +64,7 @@ export type WithRecommendMethods<TType> = TType & {
64
64
readonly getTrendingFacets : < TObject > (
65
65
queries : readonly TrendingFacetsQuery [ ] ,
66
66
requestOptions ?: RequestOptions & SearchOptions
67
- ) => Readonly < Promise < RecommendTrendingFacetsQueriesResponse < TObject > > > ;
67
+ ) => Readonly < Promise < RecommendTrendingFacetsQueriesResponse > > ;
68
68
69
69
/**
70
70
* Returns Looking Similar
You can’t perform that action at this time.
0 commit comments