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 https://github.com/reactjs/redux/pull/1936#issuecomment-251738892
See Function composition challenge for type system https://github.com/Microsoft/TypeScript/issues/10247
See https://github.com/Microsoft/TypeScript/issues/9949
This commit is contained in:
Tanguy Krotoff
2017-06-19 15:31:55 +02:00
parent ea9de8a518
commit f3b8f59fbc
@@ -15,9 +15,14 @@ const DevTools = createDevTools(
const finalCreateStore = compose(
DevTools.instrument(),
persistState('test-session')
)(createStore)
)(createStore) as
// FIXME Remove as StoreEnhancerStoreCreator<Store<any>> in the future
// See https://github.com/reactjs/redux/pull/1936#issuecomment-251738892
// See Function composition challenge for type system https://github.com/Microsoft/TypeScript/issues/10247
// See https://github.com/Microsoft/TypeScript/issues/9949
StoreEnhancerStoreCreator<Store<any>>;
const store: Store<any> = finalCreateStore(reducer)
const store = finalCreateStore(reducer)
class App extends React.Component<any> {
render() {