In the past, we had handwritten all of our database types and that was just like a giant, giant pain in the bum. We now use ZOD to schema out your data and then you get the types for free from that Schema. I generated a lot of my types from just data that had lying around in the thing. That's really good. One I went through and made all of my unions, I have product codes, course codes, customers, country codes. So those are basically functions that are very simple because those utilities are used all throughout the code base.
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