Learn TypeScript Generics In 13 Minutes

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

By far one of the hardest TypeScript concepts to understand when first learning TypeScript is generics. They introduce new syntax, new logic, and a new way of thinking all at the same time which is tough to comprehend. In this video I will be breaking down everything you need to know about generics (including advanced generic features).

📚 Materials/References:

🌎 Find Me Here:

⏱️ Timestamps:

00:00 - Introduction
00:49 - When To Use Generics
02:04 - Generic Function Basics
06:40 - Generic Type Basics
09:24 - Advanced Generic Features

#TypeScript #WDS #TypeScriptGeneric
Комментарии
Автор

Very often it feels like - yes its totally clear and so easy - when watching videos like this.
Then we go back to work and in most cases our problems are more complex and they still need some time to get around that barrier in the head and apply what we just have learned.
I tought myself the generic stuff by using it in my daily work and I still keep watching videos like this to learn about the very edgew cases - the smart little things I missed in the documentation documents in the web.

Oliver-rhbv
Автор

Whenever I find it very hard to grasp a concept, I run to this channel. You are the GOAT

newgem
Автор

Excellent, you honored the "simplified" to your name with this video, really easy to understand this way

Martinperussini
Автор

I needed more info on generics and I had already signed up for the react course on webdev. I'm glad I purchased the course on typescript. The extra info in your course was exactly what I needed to guide me through a basic understanding of generics.

WebSurfingIsMyPastime
Автор

This is shortest and the best explanation of generics in TS. Thanks for this Kyle.

waseemtahir
Автор

I'm currently learning Typescript and struggled a lot getting used to the syntax and trying to figure out what must be passed in to remove all these errors even though the code is correct with plain react/javascript. Thanks Kyle, this will assist me tremendously going forward.

fabianpetersen
Автор

I was baffled by Generics in the docs & other tutorials. This is incredibly helpful and clear. Thank you.

lauragreen
Автор

I enjoyed this. Thanks for clarifying. I actually use this but never knew I was implementing a generic type system.
Learnt new stuff today.

felistusobieze
Автор

This is the shortest and best explanation generic types and functions I've ever saw

gyros
Автор

Great video so far! Thanks Kyle as always! 👍

theisoj
Автор

great video! finally got a better idea on how generics work. I had the basic notion but never understood them like this. They are kinda placeholders for a type(s).

mondirhallouli
Автор

Really need your nextjs course, Kyle!!!

xfrzxyd
Автор

Great video! 👏I have been working with typescript for 3 years (angular) and I didn't even know this generic types possibilities.

sergiom.
Автор

The type system in TypeScript is so much more expressive than other languages. It has great inferencing, keyof for derived types, even ternaries for narrowing/filtering types

crvlwanek
Автор

I just realised how much i needed this video. Good work.

khawajamohsin
Автор

The best drops of knowledge in video I ever seen! Congratulations, man! And thank you very very much

caioveb
Автор

Simply the best explanation of TypeScript generics out there. Kyle, you're a legend. Thanks for making these videos 🙏🏻

srleom
Автор

This video is a great introduction to generics! Generics can be a confusing topic, but this video breaks it down into clear and easy-to-understand concepts. I especially liked the way he showed how to use generics with API responses. This is a common use case for generics, and it was helpful to see how to create a generic API response type that can be reused for different API endpoints.

miladevs
Автор

brief and get to the point, really appreciated

kanfit
Автор

Nicely explained, it just fit into my mind. Thanks.😊

PrabhuKripaHai