I’ve found I don’t spend much time on type-related issues in JS.
¯\_(ツ)_/¯
“JavaScript fatigue is what happens when people use tools they don't need to solve problems they don't have.” - Lucas F Costa
My need for types is reduced because:
1. My teams tend to compose many small apps instead of a few big apps
2. I work in React, where PropTypes help
3. ESLint catches many issues too
5. I write automated tests with Jest.
6. I heavily leverage npm packages, which often provide .ts files that @code parses.
8. I centralize React propType declarations and consistently declare object shapes with propTypes
9. I avoid mutating object shapes. I declare separate well-named objects when properties differ.
11. I strive to centralize state changes and enjoy immutable structures via Immer.