0.3.3 • Published 5 years ago

ts-redux-actions-reducer-factory v0.3.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

@ts-redux-actions-reducer-factory Build Status npm version

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.

Installation

npm install ts-redux-actions-reducer-factory --save

Examples

Take a look at the examples at examples/.

  • examples/simple-35482241 An example that demonstrates the inference of the final reducer state.
  • examples/todos A complete project example with the most easiest form of this factory reducer.

Tests

Take a look at the (typing) tests at test/.

Contribution

Open an issue, or email me.

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago