Skip to content

Commit

Permalink
Fix redux-devtools-tests.tsx due to Redux type being updated upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrotoff committed Jun 19, 2017
1 parent ea9de8a commit f3b8f59
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions types/redux-devtools/redux-devtools-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f3b8f59

Please sign in to comment.