Repolode
gibbok

gibbok/typescript-book

A free, open-source concise guide to TypeScript covering its type system, configuration, and language features, available online and as EPUB.

Stars
10,364
Forks
606
Open issues
1
Last commit
yesterday

What is it?

The Concise TypeScript Book is a free, open-source guide to TypeScript, aimed at both beginners and experienced developers who want a compact reference. It covers the language from its type system through advanced features, including type narrowing, generics, classes and decorators, utility types, and recent additions such as the satisfies operator and using declarations.

The book also walks through practical setup topics: installing the compiler, the key tsconfig.json options such as strict, module, and moduleResolution, and a step-by-step approach to migrating a JavaScript codebase to TypeScript. It describes the changes in TypeScript 7.0, which is a rewrite of the compiler in Go, and notes which older options are no longer supported.

The content is available as an online website and as an EPUB download, and it has been translated into many languages, including Chinese. The author also sells a paid Plus Edition with React and real-world recipes, while the open-source book remains free.

Key features

  • 01Covers the TypeScript type system, from type narrowing to advanced conditional and mapped types.
  • 02Explains tsconfig.json options such as strict, module, and moduleResolution.
  • 03Includes a step-by-step guide for migrating JavaScript projects to TypeScript.
  • 04Describes TypeScript 7.0 changes, including the Go-based compiler and removed legacy options.
  • 05Available as an online website and as a downloadable EPUB.

Use cases

  • Learning TypeScript from scratch or filling gaps in existing knowledge.
  • Keeping a compact reference handy while writing typed code.
  • Planning a gradual migration of a JavaScript codebase to TypeScript.
  • Checking configuration options and changes when upgrading to TypeScript 7.0.

Quick start

  1. 1

    Read the free online version

  2. 2

    Download the EPUB version from the downloads folder

Things to know

  • The license is not recognized in the project metadata, so reuse terms are unclear.

Topics

FAQ

What is typescript-book?
A free, open-source concise guide to TypeScript covering its type system, configuration, and language features, available online and as EPUB. The Concise TypeScript Book is a free, open-source guide to TypeScript, aimed at both beginners and experienced developers who want a compact reference. It covers the language from its type system through advanced features, including type narrowing, generics, classes and decorators, utility types, and recent additions such as the satisfies operator and using declarations.
Is typescript-book free to use? What license does it have?
typescript-book is open source under the Other license. Check the license terms before using it in commercial products.
Is typescript-book still maintained?
Actively maintained. The last commit to typescript-book was on Oct 23, 2026.
What can I use typescript-book for?
Learning TypeScript from scratch or filling gaps in existing knowledge. Keeping a compact reference handy while writing typed code. Planning a gradual migration of a JavaScript codebase to TypeScript. Checking configuration options and changes when upgrading to TypeScript 7.0.
How do I install typescript-book?
Read the free online version Download the EPUB version from the downloads folder
Where can I get typescript-book?
The source code and installation instructions are on GitHub: https://github.com/gibbok/typescript-book

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects