2min chapter

Frontend First cover image

Lying in TypeScript

Frontend First

CHAPTER

The Types Aren't Inferred From Function Definitions

The key here is that the types are coming into your system from an external system. So you could just write a bad type, but that's not a bad type. Browsers could update in 10 years from now and say we're we're we have a new type of query for Where you can pass in JSON And then all these types would be out there Sure sure sure But the key is is that thetypes are not They're not inferred from our program. They're external. It's not data It's types are types from external systems are coming intoYour system not even about types so I thinkYeah, because I can write a new router and I could give you a type definition

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