DefinitelyTyped/types/react-instantsearch-dom/server.d.ts
Haroen Viaene 4c9daf7346
[react-instantsearch] update to v6 (#43111)
* [react-instantsearch] update to v6

- createIndex & createInstantSearch no longer exist, replaced by the component in -core
- InstantSearch no longer accepts appId & apiKey
- InstantSearch no longer accepts `root` (& neither Index, but that wasn't typed)
- /server API has changed, now exposes directly `findResultsState`

* fix small typo things

* update native tests

* declare newer stuff

* prevent error

* interfaces are required apparently

* Update types/react-instantsearch-core/index.d.ts

* Update types/react-instantsearch-dom/index.d.ts

* fix lint?

* remove failing test

* hmm

* hmm this test is weird but that's ok

* old typescript
2020-03-23 11:30:33 -04:00

4 lines
124 B
TypeScript

import * as React from 'react';
export function findResultsState(App: React.ComponentType<any>, props: any): Promise<any>;