File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,14 @@ const DevTools = createDevTools(
15
15
const finalCreateStore = compose (
16
16
DevTools . instrument ( ) ,
17
17
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 > > ;
19
24
20
- const store : Store < any > = finalCreateStore ( reducer )
25
+ const store = finalCreateStore ( reducer )
21
26
22
27
class App extends React . Component < any > {
23
28
render ( ) {
You can’t perform that action at this time.
0 commit comments