Skip to content

Commit

Permalink
feat(types): DerivedHelper (#3887)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouss authored and Haroenv committed Oct 23, 2019
1 parent 3a41c1d commit 0f38b4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/instantsearch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { EventEmitter } from 'events';
import { Client as AlgoliaSearchClient } from 'algoliasearch';
import { InsightsClient as AlgoliaInsightsClient } from './insights';
import {
Expand Down Expand Up @@ -112,6 +113,10 @@ export type StateMapping<TRouteState = UiState> = {
export type Client = AlgoliaSearchClient;

export type Helper = AlgoliaSearchHelper;
export type DerivedHelper = EventEmitter & {
lastResults: SearchResults | null;
detach(): void;
};

export type InstantSearch = {
templatesConfig: object;
Expand Down

0 comments on commit 0f38b4a

Please sign in to comment.