Loading video...

Video Failed to Load

Go Home

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 views • 3 years ago •via X (Twitter)

10 Comments

Steve (Builder.io)'s profile picture
Steve (Builder.io)3 years ago

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

Steve (Builder.io)'s profile picture
Steve (Builder.io)3 years ago

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

Prathamesh's profile picture
Prathamesh3 years ago

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

Emano's profile picture
Emano3 years ago

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

Robin D's profile picture
Robin D3 years ago

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

Peter Mekhaeil's profile picture
Peter Mekhaeil3 years ago

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

☠ ‏Mr. Jack's profile picture
☠ ‏Mr. Jack3 years ago

This shit is unreadable

Chaitanya Sharma's profile picture
Chaitanya Sharma3 years ago

@ThePrimeagen did you incentivize him?👀

Demoniel's profile picture
Demoniel3 years ago

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

Bernardo Quina's profile picture
Bernardo Quina3 years ago

nice one

Related Videos