TypeScript is going to let you know if that property should be there every single time no matter what. It helps you identify things too when you're working with third party API or anything like that. The two common ones that popped up for me a few times was first, you assume something is an like a type, but it is an array of that type. And I had refactored a bunch of Axios requests into on the server side. Fetch is just the response dot and you can access your properties there.
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