Skip to content

Commit f3b8f59

Browse files
committed
Fix redux-devtools-tests.tsx due to Redux type being updated upstream
See https://github.com/reactjs/redux/blob/v3.7.0/index.d.ts See reduxjs/redux#1936 (comment) See Function composition challenge for type system microsoft/TypeScript#10247 See microsoft/TypeScript#9949
1 parent ea9de8a commit f3b8f59

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

types/redux-devtools/redux-devtools-tests.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ const DevTools = createDevTools(
1515
const finalCreateStore = compose(
1616
DevTools.instrument(),
1717
persistState('test-session')
18-
)(createStore)
18+
)(createStore) as
19+
// FIXME Remove as StoreEnhancerStoreCreator<Store<any>> in the future
20+
// See https://github.com/reactjs/redux/pull/1936#issuecomment-251738892
21+
// See Function composition challenge for type system https://github.com/Microsoft/TypeScript/issues/10247
22+
// See https://github.com/Microsoft/TypeScript/issues/9949
23+
StoreEnhancerStoreCreator<Store<any>>;
1924

20-
const store: Store<any> = finalCreateStore(reducer)
25+
const store = finalCreateStore(reducer)
2126

2227
class App extends React.Component<any> {
2328
render() {

0 commit comments

Comments
 (0)