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,458 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

Seungcheol with Suho, Jaehyun and Jiwon ! Unreleased clip 🎬 !! Jiwon, Scoups, and Suho trying to explain this to Jaehyun that why Blood types are more important than MBTIs 😭😂 (I've added eng subs in the video as well) 🖤 : What is your blood type? 🍒 : I'm type AB. 🖤 : Yours ? 🐰 : I'm type AB. 🖤 : And you? 🐶 : I'm type A 🖤 : Wow, there are two ABs? 🐰 : What is yours hyung ? 🖤 : I'm type A. 🐰 : Oh, you're type A? 🍒 : A, A, AB, AB 🐶 : Don't people usually talk about MBTI these days? 🍒 : Why are you saying like that to hyung, you punk?! 🖤 : Hey, if this debate starts again here... that means we aren't going home... Do you care about MBTI? 🐶 : I don't care about anything. 🐶 : But I really don't care about blood types. 🐰 : Blood types are important. 🍒 : Blood types are more... 🖤 : Blood types are right 🍒 : Isn't it more certain? 🐰 : Blood type is important. 🍒 : Because that's literally 'blood'. 🖤 : Right! Blood... 🖤 : MBTI changes depending on the environment as you live your life. 🐶 : Right, right, it changes. 🖤 : But blood types don't change. And if you are type A, If you're dying because you lack blood, I can give you blood via transfusion. 🐰 : But I can't give it to you. 🐶 : That is... yes... 🖤 : Can you give blood just because your MBTI is the same? 🐶 : No, you can't. 🖤 : See? Because you and I are both type A, we have something similar, which is why I can give you my blood. 🐶 : Ah... I see 🐶 : No, while watching a broadcast, when Eun Jiwon sunbaenim was insisting that aliens exist, I thought, 'Why are people losing the argument to him?' But you really do end up losing to him. #SCOUPS #에스쿱스

Ady⚡️

57,595 views • 1 month ago