mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user