Skip to content

Commit

Permalink
feat(insights): extends AutocompleteContext with Insights API
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Dec 9, 2020
1 parent 31811c1 commit f1e8de4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/autocomplete-plugin-algolia-insights/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { InsightsApi } from './types';

declare module '@algolia/autocomplete-core' {
export interface AutocompleteContext {
algoliaInsightsPlugin: {
insights: InsightsApi;
};
}
}

0 comments on commit f1e8de4

Please sign in to comment.