File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import {
16
16
Connector ,
17
17
Hits ,
18
18
Hit ,
19
- AlgoliaHit ,
20
19
WidgetRenderState ,
21
20
} from '../../types' ;
22
21
import { SearchResults } from 'algoliasearch-helper' ;
@@ -35,7 +34,7 @@ export type HitsRenderState = {
35
34
/**
36
35
* The response from the Algolia API.
37
36
*/
38
- results ?: SearchResults < AlgoliaHit > ;
37
+ results ?: SearchResults < Hit > ;
39
38
40
39
/**
41
40
* Sends an event to the Insights middleware.
Original file line number Diff line number Diff line change 2
2
AlgoliaSearchHelper as Helper ,
3
3
PlainSearchParameters ,
4
4
SearchParameters ,
5
+ SearchResults ,
5
6
} from 'algoliasearch-helper' ;
6
7
import {
7
8
Hits ,
@@ -112,6 +113,16 @@ export type InfiniteHitsRenderState = {
112
113
* Hits for the current page
113
114
*/
114
115
currentPageHits : Hits ;
116
+
117
+ /**
118
+ * Hits for current and cached pages
119
+ */
120
+ hits : Hits ;
121
+
122
+ /**
123
+ * The response from the Algolia API.
124
+ */
125
+ results ?: SearchResults < Hit > ;
115
126
} ;
116
127
117
128
const withUsage = createDocumentationMessageGenerator ( {
You can’t perform that action at this time.
0 commit comments