Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by acemarke on Tuesday March 02, 2021 @12:07PM
(#26317512)
Yep, I'm a firm believer in using TS pragmatically. Type the obvious code (React component props, API responses, function arguments), and start by aiming for an "80% sweet spot" of type coverage. Don't get into arguments with the compiler, and avoid writing really complex types unless you've got a key spot in your code where adding that type now makes it a lot easier to infer types in other places:
https://blog.isquaredsoftware.com/2019/11/blogged-answers-le...