Introducing TypeScript Generics

Опубликовано: 05 Август 2026
на канале: Nicos Tsourektsidis
2,473
131

Do you know that you can program your types? This episode is an introduction to TypeScript Generics. Discover how generics can help you reduce code. Get familiar with Generic Constraints. Understand how you can practically use Generics with functions, classes, interfaces. We will also revisit one of the key language types, arrays.

Contents
00:00 Intro
01:28 The problem Generics solve
05:41 Generic Functions
08:20 Naming convention
09:43 Generic Classes
15:36 Revisiting Arrays
17:20 Generic Constraints
25:30 Generic Interfaces
26:22 Multiple generic types
28:28 Outro

Check out my ✨TypeScript course:
https://tltr-typescript.com

Links I mention in the video
My previous video about types (in which I present arrays):
   • A Complete Guide for Types in TypeScript A...  
My previous video about interfaces:
   • Master Interfaces in TypeScript  
My previous video about classes:
   • Master Classes In TypeScript  
My blog post with all the coding examples:
https://nicotsou.com/tltr-generics/

This video belongs to my series Too Long To Read TypeScript. Every episode covers in detail a core concept of the language.

You can support this channel by clicking SUBSCRIBE :)