diff --git a/types/react-instantsearch-core/index.d.ts b/types/react-instantsearch-core/index.d.ts index 37b61acbc3..e428cc6432 100644 --- a/types/react-instantsearch-core/index.d.ts +++ b/types/react-instantsearch-core/index.d.ts @@ -18,7 +18,7 @@ import * as React from 'react'; export function createInstantSearch( defaultAlgoliaClient: (appId: string, apiKey: string, options: { _useRequestCache: boolean }) => object, root: object -): React.ComponentClass; +): React.ComponentClass; /** * Creates a specialized root Index component. It accepts @@ -26,7 +26,7 @@ export function createInstantSearch( * @param defaultRoot - the defininition of the root of an Index sub tree. * @return a Index root */ -export function createIndex(defaultRoot: object): any; +export function createIndex(defaultRoot: object): React.ComponentClass; export interface ConnectorDescription { displayName: string; diff --git a/types/react-instantsearch-core/react-instantsearch-core-tests.tsx b/types/react-instantsearch-core/react-instantsearch-core-tests.tsx index 4348d9fad0..20173180f1 100644 --- a/types/react-instantsearch-core/react-instantsearch-core-tests.tsx +++ b/types/react-instantsearch-core/react-instantsearch-core-tests.tsx @@ -10,7 +10,7 @@ import { () => { const InstantSearch = createInstantSearch(() => ({}), {Root: 'div', props: {className: `widget`}}); - +
; }; @@ -18,7 +18,7 @@ import { () => { const Index = createIndex({Root: 'div', props: {className: `widget`}}); - +
; };