I tend to put every type like right next to where it's used. If I'm typing functions that are, you know, very specific type signatures, I'll often even make an interface for that function instead of typing it directly in line with the function just to make it easier. GitHub co-pilot was amazing for this type of thing. So easy to refactor something out of one file into another and update wherever that file is referenced in the future.
In this episode of Syntax, Wes and Scott talk about their respective processes for converting JavaScript to TypeScript in their projects, why you might want to, and tooling for moving to TypeScript.
Sentry - Sponsor
If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.
Show Notes
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats