DEV Community

Discussion on: A type-safe approach to Redux stores in TypeScript

Collapse
 
kaodev profile image
Kalle Ott

Hey nice to see a pattern close to my default stack in action. One thing I do different is instead of simple strings for the action types I use string enums, they still provide the benefits of type guards but can be used as constants at all need places

Collapse
 
resir014 profile image
Resi Respati

Thanks for reminding me about string enums! Will definitely use this and include it in the Redux 4 version of this guide when I finally come around to it.