mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
549 B
TypeScript
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>
|
|
};
|