3 ms·
Take a look at some of the code samples in this post where the author is trying to make Redux work better with types in TypeScript. In my opinion, you get to th
by towndrunk 9y ago
Take a look at some of the code samples in this post where the author is trying to make Redux work better with types in TypeScript. In my opinion, you get to the point where the code looks a mess and looks difficult to maintain. There is no way a beginner is going to figure this all out.
https://medium.com/@danschuman/redux-guards-for-typescript-1b2dc2ed4790 https://medium.com/@danschuman/redux-guards-for-typescript-1...
- spion 9y agoThat article describes all the steps he took to get there, and he simply didin't make it clear what of that was included in the end result (its just a generic action creator and type guard)