2min chapter

Syntax - Tasty Web Development Treats cover image

TypeScript Fundamentals × Satisfies and as const

Syntax - Tasty Web Development Treats

CHAPTER

TypeScript - What Does Satisfies Mean?

The type of your settings is not Settings it's just generated from the actual values in there. That allows you to both Maintain all of your IntelliSense and you get errors if you accidentally spell something wrong or you try to access a property that doesn't exist. So quite honestly, I thought that like I would have thought that that that worked in TypeScript. Yeah, he value pairs. Okay. But there are use cases metadata JSON things like that where You don't necessarily have a type for it ahead of time. That's where satisfies is gonna come in handy.

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