正在加载视频...

视频加载失败

Do you know about ReturnType in TypeScript? What about Awaited or Parameters? Utility types can unlock a lot of power to keep your code type safe, even when your npm packages aren't perfect More magic you can do with utility types in my latest article:

268,402 次观看 • 3 年前 •via X (Twitter)

10 条评论

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

Find all of the code examples, as well as more awesome utility types in TS, in the full blog post:

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

Also if you love @typescript tips like this follow @mattpocockuk and take his course! He’s the wizard

Prathamesh 的头像
Prathamesh3 年前

Man, you’re the best account I followed in 2023 Keep going 🚀

Emano 的头像
Emano3 年前

When defining types is more complex that the actual code ...

Robin D 的头像
Robin D3 年前

Not gonna lie, TypeScript can get pretty disgusting real fast. 🤢

Peter Mekhaeil 的头像
Peter Mekhaeil3 年前

Impressive work on explaining a use case for each and putting it in one video 👏

☠ ‏Mr. Jack 的头像
☠ ‏Mr. Jack3 年前

This shit is unreadable

Chaitanya Sharma 的头像
Chaitanya Sharma3 年前

@ThePrimeagen did you incentivize him?👀

Demoniel 的头像
Demoniel3 年前

omfg, I don't want to learn TS anymore, look at this ugly sintaxe using lots of <> 😭

Bernardo Quina 的头像
Bernardo Quina3 年前

nice one

相关视频