This reducer factory infers the action by an action creator (or by action type string, then you need to define the generic action type by yourself) and - that's new - it infers also the state. So each reducer takes aware of the return type of previous reducers and represents therefore a possible extended state that must be initialized at the end, unless done at beginning.
npm install ts-redux-actions-reducer-factory --save
Take a look at the examples at
examples/simple-35482241An example that demonstrates the inference of the final reducer state.
examples/todosA complete project example with the most easiest form of this factory reducer.
Take a look at the (typing) tests at
Open an issue, or email me.