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
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner