4min chapter

Frontend First cover image

Lying in TypeScript

Frontend First

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode