Typescript Generics - Beginners Tutorial with Examples
Offered By: Dave Gray via YouTube
Course Description
Overview
Explore TypeScript generics in this beginner-friendly tutorial with practical examples. Discover how type variables enhance flexibility when working with functions, interfaces, type aliases, and classes. Learn to implement basic generics, create custom object checks, use keyof assertions, define generic interfaces, narrow types with extends, work with multiple type variables, and apply generics to classes. Gain valuable insights into leveraging generics for more robust and reusable TypeScript code.
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
Related Courses
C++ For C Programmers, Part AUniversity of California, Santa Cruz via Coursera Programming Languages, Part C
University of Washington via Coursera AP Computer Science A: Java Programming Polymorphism and Advanced Data Structures
Purdue University via edX Введение в iOS-разработку
Moscow Institute of Physics and Technology via Coursera Java Programming: Step by Step from A to Z
Udemy