Re:Typed Redux Reducers in TypeScript 2.0
by WayneBro on Tuesday September 27, 2016 @11:40PM
(#12595281)
Could you then do the case statements in the reducer like this?
[ Parent
| on HN ]
Re:Typed Redux Reducers in TypeScript 2.0
by lylepstein on Wednesday September 28, 2016 @02:57PM
(#12600267)
I believe you can, though I haven't tried it. Typescript will actually give you completion support for plain strings inside that switch statement, which is normally what I go with.