While this is handy for ES6, it would not work with so well with TypeScript for strongly typing the actions with their reducers. Actions generated in this manner are not strongly typed. Perhaps the generateActions method would simply not be exposed in the typings to ensure it isn't used with TypeScript.
It would be useful to support this type of syntax:
While this is handy for ES6, it would not work with so well with TypeScript for strongly typing the actions with their reducers. Actions generated in this manner are not strongly typed. Perhaps the generateActions method would simply not be exposed in the typings to ensure it isn't used with TypeScript.