2min chapter

Frontend First cover image

Lying in TypeScript

Frontend First

CHAPTER

Typescript Is a Typescript That's Like a Non-Line

The runtime check is what gives you a type that you can be a hundred percent confident Assuming there's no bugs in like zod because I know At that point you've only reached that code path if my valid my zod validation fails. Usually when we interact with systems like apis, we're writing ourselves. So it's very easy to just call an API endpoint and You want to add a type to it so that you can use typescript. It means you won't run into a bug when someone puts something in the URL you don't expect.

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