Total TypeScript

TypeScript makes JavaScript safer and your editor smarter. Matt Pocock’s Total TypeScript courses have trained thousands of developers by putting the editor first: You learn types by watching what TypeScript tells you, not by memorizing rules. This book brings that method to print.

You’ll start by setting up a proper TypeScript environment, then immediately begin writing and annotating code. Each chapter builds on the last—primitive types to unions, objects to classes, basic generics to type transformations—with exercises woven throughout as checkpoints, not afterthoughts.

Later chapters tackle what takes longer to learn: deriving types from other types, writing type predicates and assertion functions, configuring the compiler for real projects, and building type architectures that don’t collapse under their own weight.


Total TypeScript by Matt Pocock (co-authored with Taylor Bell) is a book for experienced JavaScript developers, teaching advanced TypeScript concepts through an editor-first, hands-on approach with interactive exercises. It covers everything from basic setup and essential types (unions, objects, classes) to advanced topics like generics, type transformations, and configuring the compiler for real-world projects, aiming to make developers “TypeScript wizards”. The book is based on Pocock’s popular workshops and emphasizes learning by solving problems directly in the editor, using TypeScript’s error messages as a guide. 

Key Features

  • Target Audience: Experienced JavaScript developers looking to master TypeScript. 
  • Learning Method: “Editor-first” approach, using interactive exercises and focusing on how TypeScript’s compiler guides you. 
  • Content: Covers essential types, object-oriented patterns, generics, type transformations, and configuration. 
  • Structure: Builds from basic setup to advanced type design, with exercises integrated into each chapter. 
  • Authors: Matt Pocock and Taylor Bell. 
  • Publisher: No Starch Press. 

What You’ll Learn

  • How to read and use TypeScript’s error messages as a teaching tool.
  • Writing precise types for functions, objects, and classes.
  • Using unions, narrowing, and generics for flexible and safe code.
  • Deriving and transforming types to avoid repetition.
  • Configuring tsconfig.json for different project types (React, Node, libraries). 

More about the author

Matt Pocock, Matt Pocock is a TypeScript educator and developer who has worked with Vercel and Stately.ai. He created TotalTypeScript.com, an online learning platform that has taught thousands of developers to master TypeScript.

All content is for demonstration purposes, we do not store files, please purchase the printed version of the magazine after reading.

There are many ads here. Please keep in mind that readnote.org is 100% free. Ads are keeping this site alive. If you use, please make an exception and disable any ads blocking system.