In this video, we dive deep into the implementation details of TypeScript's built-in utility types to understand how they work at a fundamental level.
We'll explore the type techniques that power these utilities, including mapped types, conditional types, and key remapping. By examining the actual source code definitions, you'll gain a deeper understanding of TypeScript's type system and learn how to create your own custom utility types.
00:00 Intro
00:45 Fundamental concepts
0:59 Generics
01:52 keyof and mapped types
03:02 Conditional types
04:24 infer keyword
05:25 Partial, Required and ReadOnly
06:03 Pick and Record
06:41 Exclude, Extract and Omit
07:02 NonNullable
07:30 Parameters and ReturnType
08:05 Awaited