Skip to content

Commit 37c6aad

Browse files
francoischalifourHaroenv
authored andcommitted
feat(index): provide scoped results to render hook (#3964)
1 parent 131b1ce commit 37c6aad

File tree

4 files changed

+259
-54
lines changed

4 files changed

+259
-54
lines changed

src/types/widget.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ export interface InitOptions {
1515
createURL(state: SearchParameters): string;
1616
}
1717

18+
export interface ScopedResult {
19+
indexId: string;
20+
results: SearchResults;
21+
}
22+
1823
export interface RenderOptions {
1924
instantSearchInstance: InstantSearch;
2025
templatesConfig: object;
2126
results: SearchResults;
27+
scopedResults: ScopedResult[];
2228
state: SearchParameters;
2329
helper: Helper;
2430
searchMetadata: {

0 commit comments

Comments
 (0)