Generics: The most intimidating TypeScript feature
About
No channel description available.
Latest Posts
Video Description
Generics are a huge reason why TypeScript is SO DARN POWERFUL. Letting you create types from other types, pass types to functions, and even INFER those types without you needing to specify them. They're pretty advanced, though - so if you want to learn more advanced TypeScript, time to strap in. Become a TypeScript Wizard with Matt's TypeScript Course: https://www.totaltypescript.com/ Follow Matt on Twitter https://twitter.com/mattpocockuk 00:00 Intro 00:36 Generics on the type level 01:45 Passing type arguments to functions 03:06 Passing type arguments to Set 04:21 Inferring the types 05:55 Constraints on type arguments 08:19 Constraints in functions 10:07 Sometimes 'as' is fine 11:23 Multiple type arguments 14:05 Defaults in type arguments 15:00 Integrating with third-party libraries 17:26 Outro
You May Also Like
Boost Your TypeScript Skills Today
AI-recommended products based on this video

2026 New Embroidery Stitch Book Kit, Stitch Book Embroidery, All-in-One Embroidey StitchBook & Sewing Kit, Comes with a Complete Toolkit and Instructional Tutorial (1set)

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

The Art of Home: A Designer Guide to Creating an Elevated Yet Approachable Home, Hardcover

The Livy Method: Weight Loss Program Guide

The Bible In A Year: A 52-Week Study Through God's Word, Spiral Bound Bible Study Guide Journal Notebook, A Beautiful Year Planner in the Bible for Women (A5)














![[DEPRECATED] TypeScript: Should you use Types or Interfaces?](https://imgz.pc97.com/?width=500&fit=cover&image=https://i.ytimg.com/vi/zM9UPcIyyhQ/hqdefault.jpg)
