TS Tricks: Type-safe Reducers

added by JavaScript Kicks
3/5/2019 8:37:58 AM

55 Views

If you enjoyed my post on type guards, this one might tickle your fancy. We're going to talk about how to build a type-safe reducer. Now, I use these for redux reducers, but these principles could apply to any function. Let's start by typing some actions.


0 comments