GOTO - The Brightest Minds in Tech

TypeScript Cookbook • Stefan Baumgartner & Peter Kröner

Aug 26, 2025
In this engaging discussion, Stefan Baumgartner, author of 'TypeScript Cookbook,' shares his insights on practical TypeScript implementation strategies. He emphasizes the shift from theory to real-world applications and the importance of minimalist type declarations. Explore best practices for project setup and the balance between type safety and flexibility. Stefan also delves into the complexities of TypeScript classes and encourages simplicity in coding decisions, all while reflecting on the learning journey with this powerful language.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ADVICE

Prefer Inference Over Excessive Annotations

  • Prefer inferred types and avoid writing annotations when TypeScript can infer them.
  • Use a few targeted annotations to add guardrails rather than annotating everything.
INSIGHT

Real World Needs Different Recipes

  • Real-world TypeScript reveals many edge cases the type system skirts around.
  • A cookbook of practical recipes helps resolve those real-world mismatches.
ADVICE

Master tsconfig, Not Just Copying Files

  • Learn tsconfig flags deeply instead of copying full configs between projects.
  • Use includes, excludes and path mapping to scope types across front-end and back-end code.
Get the Snipd Podcast app to discover more snips from this episode
Get the app