DefinitelyTyped/types/react-instantsearch-dom/server.d.ts
2018-11-05 10:16:12 -06:00

15 lines
549 B
TypeScript

import * as React from 'react';
/**
* Creates a specialized root InstantSearch component. It accepts
* an algolia client and a specification of the root Element.
* @param defaultAlgoliaClient - a function that builds an Algolia client
* @returns an InstantSearch root
*/
export function createInstantSearch(
defaultAlgoliaClient?: (appId: string, apiKey: string, options: { _useRequestCache: boolean }) => object
): {
InstantSearch: React.ComponentClass<any>;
findResultsState(App: React.ComponentType<any>, props: any): Promise<any>
};