Book
Programming TypeScript
Making Your JavaScript Applications Scale
Boris Cherny
Summary
Boris Cherny opens from the problem Facebook, Google, and Microsoft each independently solved by adding a gradual static type layer to a dynamic language: code that scales in size and in number of engineers needs types the compiler can check. Written for programmers with intermediate JavaScript experience, the book works from TypeScript's basic type system through type inference, classes and interfaces, and advanced types, then into async programming, framework interop, namespaces and modules, and the build toolchain. It treats TypeScript's type system as something with its own design logic worth understanding deeply, not as JavaScript with annotations bolted on.
Target Readers
- JavaScript developers moving to TypeScript who want the type system's underlying logic, not just enough syntax to silence errors
- Engineers on a growing codebase who need generics and advanced types explained from first principles
- Developers who use TypeScript day to day but have never worked through how its type inference actually reasons about their code
Tags
Colophon
- Publisher
- O'Reilly Japan
- ISBN
- 978-4873119045
- Published
- Mar 2020
- List price
- ¥3,740incl. 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
Dokushu JavaScript, New Edition (Self-Study JavaScript)
CodeMafia
Reason: Once you can write working JavaScript, the anxiety of untyped code at scale comes into view. Programming TypeScript explains from the ground up the idea of layering static types onto JavaScript, providing the entry point to code you can extend safely.
- Related
The Art of Readable Code
Simple and Practical Techniques for Writing Better Code
Dustin Boswell, Trevor Foucher
Reason: Once you've internalized the principles of readable code, you advance to supporting that readability with the mechanism of types. Programming TypeScript shows how type annotations act as 'documentation expressed in code,' letting you write intent-revealing code on the twin wheels of naming and types.
Next Books
- Recommended
Effective TypeScript, 2nd Edition
83 Specific Ways to Improve Your TypeScript
Dan Vanderkam
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: After grasping the overall picture of TypeScript with Boris Cherny's introduction, you solidify a more grounded understanding with a practical Japanese-language primer. 'TypeScript Introduction for Aspiring Professionals' builds carefully from syntax to practical typing, filling in the assumptions an English-language book tends to skip.
- Recommended
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: Having finished learning the basics of TypeScript's typing and type inference, you move on to a recipe collection you can open whenever you're unsure how to write something in practice. TypeScript Code Recipes organizes type narrowing, utility types, the satisfies operator, and more into 177 recipes, converting introductory knowledge into concrete implementation decisions.
- Related
Vue 3 Frontend Kaihatsu no Kyokasho (The Vue 3 Frontend Development Textbook)
Shinzo Saito (WINGS Project)
Reason: With TypeScript fundamentals acquired, you learn Vue.js, another major framework, as an option. 'The Vue 3 Frontend Development Textbook' assumes the Composition API and type support, offering a reactive approach to building UI that differs from React.
- Related
Learning React, 2nd Edition
Modern Patterns for Developing React Apps
Alex Banks, Eve Porcello
Reason: With TypeScript fundamentals in place, you build on them to advance to React, the flagship of modern frontend. Learning React teaches components, hooks, and state management hands-on, connecting your typed-JavaScript knowledge to a real UI framework.