Learn Backend Development Part-Time, Online
Finance Certifications Goldman Sachs and Amazon Teams Trust
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial explains TypeScript generics through examples using generic functions, interfaces, type constraints with extends and keyof, multiple type variables, and generic classes. A JavaScript background is suggested.
Syllabus
Intro
Welcome
Starter code and set up
What are Generics?
Basic Example and Syntax
isObject example
isTrue with keyof Assertion
Interface with Generic example
Narrowing Generics with Extends
Multiple Type Variables & Extends with keyof
Class with Generics
Taught by
Dave Gray