The idea is to create a schema declaration for redux apps and generate ALL the boilerplate with flow typing. The schema will define the entire hierarchy of the store and the reducers.
What I am trying to achieve here.
- Greatly reduce boilerplate. Only say your actions and how the state derives from them.
- Enforce flow typing on everything. Since we have explicit type declaration for the actions, we can generate actions, action creators, reducers and selectors all with the correct types.
I am borrowing the idea from our php repo, which uses gencode heavily to great success.