mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Add test for return val of createInstantSearch
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
} from 'react-instantsearch-core';
|
||||
|
||||
() => {
|
||||
const InstantSearch = createInstantSearch(() => {}, {Root: 'div', props: {className: `widget`}});
|
||||
const InstantSearch = createInstantSearch(() => ({}), {Root: 'div', props: {className: `widget`}});
|
||||
|
||||
<InstantSearch>
|
||||
<div></div>
|
||||
@@ -128,3 +128,10 @@ import {
|
||||
|
||||
<ComposedMyComponent additionalProp='test' />;
|
||||
};
|
||||
|
||||
() => {
|
||||
const InstantSearch = createInstantSearch(
|
||||
() => null, // $ExpectError
|
||||
{}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user