ZeusWPI / MOZAIC

MOZAIC is the Massive Online Zeus Artificial Intelligence Competition platform
GNU Lesser General Public License v3.0
13 stars 6 forks source link

Redux actionCreators should be a little more typesafe #212

Open wschella opened 6 years ago

wschella commented 6 years ago

We should be able to switch on action.type and TSC should be able to deduce what the payload type is. See for example https://spin.atomicobject.com/2017/07/24/redux-action-pattern-typescript/.

iasoon commented 6 years ago

Wait, is this not working right now?

iasoon commented 6 years ago

This is being addressed on the typesafe-actions branch, but it needs to be finished. Examples are in place, it's mostly some mechanical porting now. Ping me if you want to work on this!