正在加载视频...

视频加载失败

The `satisfies` operator in TypeScript 4.9 is a game changer Here is a quick overview of how it compares to a couple alternative ways of annotating types Learn more about the `satisfies` operator here:

257,759 次观看 • 3 年前 •via X (Twitter)

10 条评论

Steve (Builder.io) 的头像
Steve (Builder.io)3 年前

For those asking, I do have a YouTube channel where I posts videos like this, complete with obnoxious thumbnails

Steve (Builder.io) 的头像
Steve (Builder.io)3 年前

Read more about making the most of `satisfies` in my latest blog post:

Rich Perez 的头像
Rich Perez3 年前

This is really cool and also I need time to wrap my around the three different scenarios lol

Ash Connolly 👋 的头像
Ash Connolly 👋3 年前

By far the most clear explanation of satisfies I've seen. Great vid mate! 👍 I've been wanting this is in TS for a while, so pleased it's here!

Brian Lovin 的头像
Brian Lovin3 年前

Very helpful 🙌

Steve (Builder.io) 的头像
Steve (Builder.io)3 年前

Thanks Brian!

Nikolas Burk 的头像
Nikolas Burk3 年前

Awesome video 🚀 @stephenkingdev also wrote a really instructive article about how `satisfies` helps you with DB-related workflows 👀

Yoav Ganbar 的头像
Yoav Ganbar3 年前

Spending those days off well 😂

John 的头像
John3 年前

I guess this also helps get rid of places with extra unknown conversions before type cast e.g (as unknown as Color), right? 🤔

moji /// 的头像
moji ///3 年前

Nicely explained, thanks!

相关视频