From ee4495fefd2c0454d8161900d8bfedc706ad0a62 Mon Sep 17 00:00:00 2001 From: Gordon Date: Tue, 16 Oct 2018 14:23:04 -0500 Subject: [PATCH] Ensure 'react' imported in DOM --- types/react-instantsearch/dom/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/react-instantsearch/dom/index.d.ts b/types/react-instantsearch/dom/index.d.ts index 5b3a2f4d07..042676d5f0 100644 --- a/types/react-instantsearch/dom/index.d.ts +++ b/types/react-instantsearch/dom/index.d.ts @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { Hit, BasicDoc } from '../types'; // Core @@ -20,7 +22,7 @@ export interface CommonWidgetProps { * * https://community.algolia.com/react-instantsearch/guide/i18n.html */ - translations?: { [key: string]: string | (...args: any[]) => any }; + translations?: { [key: string]: string | ((...args: any[]) => any) }; } export interface InstantSearchProps {