How to use generics in TypeScript

preview_player
Показать описание

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

One of the key things that made this tutorial awesome is the excellent *"job queue"* example. Using a simple but realistic example is a million times more helpful than using the typical meaningless placeholders of *"foo", "bar", "test1", "test2", * and *"asdf".*

DemPilafian
Автор

I've discovered your channel a few days ago and started to watch all your videos. You're are amazing buddy! State of the art content and the way you explain everything to the detail is unbeatable! The length of your videos also fits me a lot. Thank you and keep doing the good stuff!

rolikaseventysix
Автор

For ages I've been coming across tutorials and articles on this topic but this video is exactly what I've been looking for. I can finally say that now I totally got my head around how generics work in TypeScript. Thank you Andrew for making this incredibly helpful video. You've definitely gotten my subscription. Keep up with the great content.

JosimarBezerra-fxwb
Автор

Had read the official docs numerous times and had watched several vids regarding generics in TS. But couldn't develop a firm mental model about the same like your vid helped me develop. Amazing explanation man ! 👌

monty_
Автор

Why have I watched like 10 videos on the subject of Generics but only now understanding it. You did a very good job explaining this, THANKS !

JuicyBenji
Автор

YouTube is acting bizarrely. It says this video has 30K views, but has 45K likes. That’s a great ratio. Keep up the great work! Also the video was great. Thank you!

BrandonKBoswell
Автор

This was a well explained video with good pacing and editing. Subscribed!

Oxfist
Автор

Hype, I'm sure this is gonna be a masterclass!!

mmmike
Автор

One of the best explanations of Generics I've ever seen 👏

Dgiulian
Автор

Great practical example, really helped clear things up

TheDanthelion
Автор

Andrew, good seeing you again. Took few of your class at Net Tuts Plus, Great teacher

nicio
Автор

This was helpful to form a Nice mental modal

HSBTechYT
Автор

I often find generic pretty hard to implement in my code base, but I just got an idea how I can do it now. Thanks!

ninthsun
Автор

thanks a lot for this, it helps me understand generics in a deep way

rahimco-susc
Автор

Dude you’re good at explaining things. Keep it up! 💯 Glad I discovered your channel. Btw, will you make a video on types vs interfaces? Or do you have a short explanation on when to use one over the other? Thank you!

codecifra
Автор

Amazing thanks for helping me understand generics. I have a more intuitive feel for them now.

RayanMADAO
Автор

template type analogy is great!
I would love if TS renamed generics to template types of something

kirillvoloshin
Автор

Great video!
The one thing I don't understand is why is there a need for the angle brackets before the parenthesis of a function?

KarimFayed-oyoo
Автор

Hey, I have a question, but it's actually not related to the topic main of this video exactly.

I noticed you are using this // ^? comment at the bottom, which seems rather useful. Can you say exactly what it's called exactly? I tried searching for it online but couldn't find anything. Is it a typescript specific thing, or perhaps it's just a typescript playground feature? If it's documented somewhere, a link to that would be golden, cheers!

dechobarca
Автор

Why create `Job` as a type instead of an interface?

GreggBolinger