2min chapter

Frontend First cover image

Lying in TypeScript

Frontend First

CHAPTER

TypeScript Is a Good Tool to Deploy JavaScript

The type safety you get from the Invocation and the implementation being in the same file is like crucial to making it work. Once you split those things up you lose some safety So in your example where you have a blog post that had a type of? User with an ID and a name. I got that from my CMS And so now in my implementation of my app code. I'm working with a type that You know it's given to me and so I can trust it But can you can you trust it in the same way you can trust those two five functions in the samefile? You can't because someone like you said could go and make first name optional, for example. The

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