From 93c4e1077323aa8e337320e419a5879a6b9f93b7 Mon Sep 17 00:00:00 2001 From: Gordon Date: Thu, 18 Oct 2018 09:28:07 -0500 Subject: [PATCH] createInstantSearch and createIndex should accept props --- types/react-instantsearch-core/index.d.ts | 4 ++-- .../react-instantsearch-core-tests.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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`}}); - +
; };