Book
Programming TypeScript
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
- オライリー・ジャパン
- 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
- Related
The Art of Readable 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
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.
- Related
Learning React, 2nd Edition
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.