No BS TS #7 - Generics in Typescript

preview_player
Показать описание
Generics are fundamental to Typescript. So let's start digging in and learning this super powerful way of making your code cleaner, leaner and more type safe.

00:00 Introduction
00:17 Start coding
00:34 Making a generic function
02:33 Overriding inferred generic type
03:49 Example #2 - Ranker
05:35 Generic Interfaces
06:31 Testing ranker
08:03 Outroduction

👉 What's my theme? Night Wolf [dark blue]
👉 What's that font? MonoLisa

💢 Watch our other videos:

Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.

#typescript #NoBSTS
Рекомендации по теме
Комментарии
Автор

I feel bad consuming this content for free, it's pure gold.

achillesnakmuay
Автор

Jack, your tutorial on TypeScript Generics is absolutely fantastic! You are truly a valuable gem for the TypeScript community.

elmoutaouakkilmohammed
Автор

This is beautiful. I love it. Not only explained generics but also made me think about the way react useState works. Thank you.

rodiaz
Автор

thank you Jack for these videos, I really had a hard time understanding these generics but you clearly explained them awesome!

mirciulicasm
Автор

Thank you Jack for covering this! Though this is a lot for me to take in in just one watch so I'm gonna do some little tinkering of my own to get the hang of it. Thanks again!

johnchristianardosa
Автор

'Sup Jack! First saw this a year ago and I just came back to say thankyou. This video is what made it click for me. It turned typescript from a chore to a blessing.

nhieljeff
Автор

It was the best explaination of generics that I ever heard! Thank you!

mikhailkniazev
Автор

Great content, Jack! I think you deserve a coffee for this. Thanks 😊

VinayGoudtallapalli
Автор

it is really one of the best learning resource i ever saw, thank you Jack

artemu
Автор

this is the first video i came across from your channel.
you're awesome! no BS indeed! thank 😍

zzdandanzz
Автор

Your explanations are top-notch. Thank you so much.

sumitwadhwa
Автор

More and more and more typescript, i love it

Deliverant
Автор

My brain burned especially while watching the ranker part. Thank you for the nice examples :)

berkaygurcan
Автор

Keep the series as long as you can Jack :)

piotr
Автор

Very well explained. Thanks for sharing!

gideon
Автор

Jack is a savior for ts newbie like me 😆

poppin_party
Автор

some of the best stuff on js/ts youtube, thanks so much

jacobharris
Автор

This guy, to me at least, is the Uncle Bob of typescript. Really great stuff! I did have one question, though. For the 'ranker' function, is there any generic way to assign weights to the properties of an item? I haven't watched through the series yet, so I may stumble upon the answer as I binge watch No BS TS.

optix
Автор

Local variables stay in memory after function execution has completed!

And you can get and set them!

Man! You keep reaffirming that I don't know sh*t.

hassaannoor
Автор

This was a nice video! But my inner-self pokemon fan thought wth is a Megaasaur LOL. Keep the good work!

francoq