Skip to content

Commit

Permalink
feat(index): provide scoped results to render hook (#3964)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour authored and Haroenv committed Oct 23, 2019
1 parent 131b1ce commit 37c6aad
Show file tree
Hide file tree
Showing 4 changed files with 259 additions and 54 deletions.
6 changes: 6 additions & 0 deletions src/types/widget.ts
Expand Up @@ -15,10 +15,16 @@ export interface InitOptions {
createURL(state: SearchParameters): string;
}

export interface ScopedResult {
indexId: string;
results: SearchResults;
}

export interface RenderOptions {
instantSearchInstance: InstantSearch;
templatesConfig: object;
results: SearchResults;
scopedResults: ScopedResult[];
state: SearchParameters;
helper: Helper;
searchMetadata: {
Expand Down

0 comments on commit 37c6aad

Please sign in to comment.