Decoding Perplexing TypeScript by Daria Caraway

2,093
0
Published 2024-07-18
Have you ever come across a TypeScript type that made you go “nope” and close the file? Have you ever seen a type definition that had so many generic letters and nested statements, it felt utterly incomprehensible? In this talk, I will break down and decode some of the most perplexing TypeScript type definitions I have found in real life. You will learn how to make sense of these complex types and the TypeScript building blocks that compose them.

jsconfbp.com/speakers/daria-caraway

Daria is a Speaker and Senior Software Engineer at Netflix where she builds web applications for Netflix Content Strategists. She has been an avid lover of TypeScript for the past 9 years and enjoys helping people level up their React and TypeScript skills. When not coding, Daria is often found traveling, eating good food, and traveling to eat good food.

All Comments (5)
  • @browsermage
    Great talk, but the reason TS is spawned from the depths of Hades
  • FYI: The type at 14:24 is incorrect (it doesn’t even compile). `infer` is needed before `U` (it’s correct in example 3). Aside from that: Decent talk for people who have not looked very deeply into TypeScript's type system so far, but if you already have some experience, it’s not that interesting. Most of the stuff is actually quite basic compared to some of the more nuanced intricacies of the type system.