~/talk

Advanced TypeScript Type Utilities

Talkat NDC Sydney 2022 · 2022-10-12..10-14· [typescript]
slides:none on file

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

  1. 0:00Introduction
  2. 1:35Type annotations and aliases
  3. 4:39Understanding generics
  4. 7:55Type functions and identity
  5. 9:58Intersection types
  6. 14:57Lookup types
  7. 17:24Literal and union types
  8. 18:26Keyof operator
  9. 21:13Generic constraints
  10. 22:58Types as proofs
  11. 28:59Conditional types
  12. 33:11Infer keyword
  13. 35:21Mapped types
  14. 38:53Map type modifiers
  15. 40:39Never type
  16. 43:28Built-in utilities
  17. 45:14Partial and required
  18. 46:37Pick and omit
  19. 48:19Exclude utility
  20. 51:51NonNullable utility
  21. 55:42ReturnType utility
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.