Failed to compile. (it does work with npm)
TypeScript error: Argument of type '{ todoList: (state: any, action: Action<any>) => any; }' is not assignable to parameter of type 'ReducersMapObject'.
Property 'todoList' is incompatible with index signature.
Type '(state: any, action: Action<any>) => any' is not assignable to type 'Reducer<any>'.
Types of parameters 'action' and 'action' are incompatible.
Property 'payload' is missing in type 'AnyAction' but required in type 'Action<any>'. TS2345
9 | }
10 |
> 11 | export default (history: History) => combineReducers({
| ^
12 | ...todoReducer
13 | });
14 |