Full Stack Radio cover image

144: Gary Bernhardt - TypeScript and Testing

Full Stack Radio

00:00

How to Write Java Script Classes That Aren't UnStarted

typescript lets you write code that can be used on both sides of a union. The idea is to make sure all the constraints of the system's data are actually enforced on both sides. For example, in one state it maybe has three fields filled out, but in like, another state it has like five. But those extra two both have to be there. So they're, they're on union. It's giving you access control over what your expectations for access to the properties are and then it just enforces them for you an arbitrary level of complexity.

Play episode from 01:13:15
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app