Ryan Cavanaugh
Ryan Cavanaugh
Ryan Cavanaugh has been working on the TypeScript team at Microsoft since before its first public release in 2012. He's worn many hats in this time, including tester, developer, customer data, and now serves as the development manager for the compiler team.
TypeScript Congress 2023TypeScript Congress 2023
25 min
Let's Make a Generic Inference Algorithm
How does generic inference in TypeScript work? For most people, this can seem like a black box. TypeScript's developer lead, Ryan Cavanaugh, walks us from a simple single-step generic inference algorithm up to a simplified model of how generic inference in TypeScript actually works, with a focus on motivating examples.