Skip to content

Stage 06Web & Languages2nd EditionUnread

Effective TypeScript: 83 Specific Ways to Improve Your TypeScript

83 battle-tested idioms for writing precise, maintainable TypeScript: thinking in sets, minimizing unsoundness, designing ergonomic generic APIs, and avoiding type-level pitfalls.

Dan Vanderkam · O'Reilly Media (2024) · ISBN 978-1-09-815506-3

  1. 026Thinking of types as sets of runtime values
  2. 027Preferring type inference & avoiding redundant annotations
  3. 028Designing valid-state-only discriminated unions
  4. 029Taming any, unknown & type-safe boundary validation
  5. 030Writing maintainable generic types, testing types & d.ts ergonomics
Effective TypeScript: 83 Specific Ways to Improve Your TypeScript by Dan Vanderkam