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
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