Advanced TypeScript Type Utilities
summary
Live demos translate TypeScript features into concrete patterns: generic queues, a wrapper that returns immutable object/array proxies, and type-level functions using lookup types and mapped types plus conditional types with infer to extract array members. The talk shows how built-ins like Partial/Readonly/Omit/Exclude/Required/NonNullable/ReturnType are defined and reused, explains never vs unknown, uses GitHub Copilot during coding, and connects these utilities to real libraries for typesafe schema validation and RPC-style HTTP APIs that actually typecheck and work.
AI-written summary · about
chapters (21)
- 0:00Introduction
- 1:35Type annotations and aliases
- 4:39Understanding generics
- 7:55Type functions and identity
- 9:58Intersection types
- 14:57Lookup types
- 17:24Literal and union types
- 18:26Keyof operator
- 21:13Generic constraints
- 22:58Types as proofs
- 28:59Conditional types
- 33:11Infer keyword
- 35:21Mapped types
- 38:53Map type modifiers
- 40:39Never type
- 43:28Built-in utilities
- 45:14Partial and required
- 46:37Pick and omit
- 48:19Exclude utility
- 51:51NonNullable utility
- 55:42ReturnType utility
related talks
52mTypescript Deep Dive
44mA Deep Dive Into Advanced TypeScript - A Live Coding Expedition
48mDeep Dive into Advanced TypeScript: A Live Coding Expedition
54mAdvanced TypeScript
34mNot Your Uncle’s Clean Code (TypeScript Edition)
51mTypeScript - Beyond the Basics
01h 33mAdvanced TypeScript
44mA Deep Dive Into Advanced Typescript: A Live Coding Expedition
