Full Stack Radio cover image

144: Gary Bernhardt - TypeScript and Testing

Full Stack Radio

00:00

Typescript

typescript has sub classing and, you know, typescipt has a lot of things. It's very, kind of complex. But it has this feature called type unions. So if you have an existing type, let's say user, and you want to make a function that can take either a user or a idont group, you don't have to introduce some kind of weird, unnatural base class. That's, what would you even call it? You know, a can own things, yes?

Play episode from 55:28
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