正在加载视频...
视频加载失败
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)3 年前
Find all of the code examples, as well as more awesome utility types in TS, in the full blog post:

Steve (Builder.io)3 年前
Also if you love @typescript tips like this follow @mattpocockuk and take his course! He’s the wizard

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

Emano3 年前
When defining types is more complex that the actual code ...

Robin D3 年前
Not gonna lie, TypeScript can get pretty disgusting real fast. 🤢

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

☠ Mr. Jack3 年前
This shit is unreadable

Chaitanya Sharma3 年前
@ThePrimeagen did you incentivize him?👀

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

Bernardo Quina3 年前
nice one
