Book
Effective TypeScript, 2nd Edition
83 Specific Ways to Improve Your TypeScript
Dan Vanderkam
Summary
Dan Vanderkam follows the Effective C++ and Effective Java format: 83 independent, numbered items, each making one specific argument about how to use TypeScript rather than explaining the language end to end. This second edition is updated for TypeScript 5 and adds two new chapters, one on type-level programming and one of TypeScript recipes, alongside existing coverage of type inference, control flow analysis, generics, and the unsound corners of the any type. Because each item stands alone with its own before-and-after code, it works as well for looking up a specific problem as for reading in order.
Target Readers
- TypeScript developers who know the syntax but keep writing code the type checker fights instead of works with
- Engineers on a large TypeScript codebase who need concrete guidance on type design decisions, not another language tour
- Developers migrating a JavaScript codebase to TypeScript and hitting any types they don't know how to eliminate
Tags
Colophon
- Publisher
- O'Reilly Japan
- ISBN
- 978-4814401093
- Published
- Apr 2025
- List price
- ¥4,620incl. taxMay differ from the actual selling price on Amazon
Get this book
* The link above is an advertisement via Amazon Associates.Related Books
Prerequisites
- Recommended
Programming TypeScript
Making Your JavaScript Applications Scale
Boris Cherny
Reason: Once you understand the basics of TypeScript's type system, you systematically learn the knack of using it 'effectively.' Effective TypeScript provides judgment criteria—eighty-three concrete items on leveraging type inference and taming any—for making types a weapon in practice.
- Recommended
Pro o Mezasu Hito no Tame no TypeScript Nyumon (An Introduction to TypeScript for Aspiring Professionals)
From Writing Safe Code to Using Advanced Types
Ryota Suzuki
Reason: Once the practical primer has made you comfortable developing with types, you move on to more refined type-design best practices. Effective TypeScript shows, item by item, 'why you should write it this way,' elevating your design from types that merely work to types that help readers and your future self.
- Related
TypeScript Code Recipe Shu (A Collection of TypeScript Code Recipes)
177 Techniques You Can Look Up by What You Want to Do
Takeshi Kano
Reason: Once you have individual recipes on hand, you move on to the design principles behind them, the question of why you should write it this way. Effective TypeScript lays out judgment criteria across 83 items, such as leveraging type inference and taming any, turning recipe selection from ad-hoc into principle-based.
Next Books
- Recommended
Learning React, 2nd Edition
Modern Patterns for Developing React Apps
Alex Banks, Eve Porcello
Reason: Once type design is a weapon you can wield, you advance to component-oriented UI development—the proving ground where those types shine most. Learning React gives you the experience of building UI declaratively while guarding props and state with types, letting you feel the benefit of types in making screens.
- Related
A Philosophy of Software Design, 2nd Edition
John Ousterhout
Reason: Once you can write robust code with types, you want to face a more fundamental question—how to curb complexity itself. A Philosophy of Software Design articulates the 'good versus bad' of design that underlies typing, through principles like deep modules and information hiding.
- Related
Jissen Next.js (Practical Next.js)
Web App Development Evolving with the App Router
Takefumi Yoshii
Reason: With a deeper repertoire of type design, you apply those types to Next.js full-stack development, where they pay off across every layer. This book shows implementations that carry types through the server/client boundary and data fetching, extending type safety across the whole app.
Sources