We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a41c1d commit 0f38b4aCopy full SHA for 0f38b4a
src/types/instantsearch.ts
@@ -1,3 +1,4 @@
1
+import { EventEmitter } from 'events';
2
import { Client as AlgoliaSearchClient } from 'algoliasearch';
3
import { InsightsClient as AlgoliaInsightsClient } from './insights';
4
import {
@@ -112,6 +113,10 @@ export type StateMapping<TRouteState = UiState> = {
112
113
export type Client = AlgoliaSearchClient;
114
115
export type Helper = AlgoliaSearchHelper;
116
+export type DerivedHelper = EventEmitter & {
117
+ lastResults: SearchResults | null;
118
+ detach(): void;
119
+};
120
121
export type InstantSearch = {
122
templatesConfig: object;
0 commit comments