Frontend First cover image

Lying in TypeScript

Frontend First

00:00

Is That a Liar?

The third party system doesn't provide any types. So you end up defining those types in your code, right? I think this is I've seen this in just about every types group project I've worked on. And then if you have like different types of blog posts You use like the TypeScript utility functions where it's not just defining new types for like a published blog post and i'll Unprolish more writing that blog original blog post or whatever. This is why in general you want to rely on inference as much as possible in TypeScript because You restrict your sources of truth to the edges.

Transcript
Play full episode

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