Jump to ratings and reviews
Rate this book

Mastering TypeScript: Write TypeScript fluently and without fighting the type system

Not yet published
Expected 9 Jun 26
Rate this book
Master the TypeScript language – form mental models of the type system, read and understand errors, and migrate from JavaScript to TypeScript competently.



Purchase of the print or Kindle book includes a free eBook in PDF format.

Key FeaturesExplore TypeScript’s key elements and advanced language featuresDive deep into type inference, type design, and building custom typesForm mental models to help you write TypeScript more fluentlyBook DescriptionIf you’re a developer who wants to learn how to work with TypeScript instead of fighting it, this is the book for you – no JavaScript knowledge required.

Mastering TypeScript will get you up and running with TypeScript quickly, introduce core concepts, and dive deep into the workings of the type system. You’ll learn how to control your compiler options, work with types from third-party sources, and use advanced features such as decorators and generics.

This fifth edition has been reconceived with new chapters on JavaScript to TypeScript migration, type narrowing, reading and understanding TypeScript errors, and more. It also includes a set of brand-new sample projects that put TypeScript in practical and relatable perspective.

What you will learnLearn about core TypeScript language featuresUse the type system to write better applications with fewer errorsRead and understand common and confusing TypeScript errorsWork with types you don't own, from browser APIs, Node APIs, and JavaScript APIsConfigure the TypeScript compiler using best practicesSee TypeScript in the context of functional and object-oriented programmingExplore advanced types and the art of type manipulationMigrate code from JavaScript to TypeScript without relying on the any typeWho this book is forThis book is a guide for any developer who wants to learn TypeScript. No prior knowledge of JavaScript is required, but some prior programming experience is assumed.

If you are already an experienced TypeScript or JavaScript developer, this book will take your skills to the next level.

Table of ContentsIntroduction to TypeScriptUp and Running QuicklyExploring the Type SystemType Annotations and AssertionsType InferenceArrays and ObjectsType DesignType NarrowingTypeScript ConfigurationTypes from Third-Party SourcesReading and Understanding TypeScript ErrorsFunctional ProgrammingObject-Oriented ProgrammingAdvanced Types and Type ManipulationDecoratorsMigrating from JavaScript to TypeScript

460 pages, Paperback

Expected publication June 9, 2026

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.