TypeScript Book

A practical TypeScript guide for JavaScript developers

This repository is now organized as a small static book site. Each chapter lives as source text in the repository root and is published as a separate page in GitHub Pages.

How the repository is organized

The markdown files in the repository root remain the canonical source material. The docs/ folder is generated for GitHub Pages and can be served directly as a static site.

The original long Fast Dive chapter is published as an appendix because its formatting is rougher than the other chapters.

Chapter 1

Basic Programming

JavaScript foundations, TypeScript syntax, variables, types, arrays, loops, and functions.

Chapter 2

Object-Oriented Programming

Encapsulation, inheritance, polymorphism, classes, interfaces, access modifiers, and abstract types.

Chapter 4

Decorators

A focused chapter on class decorators and decorator factories.

Chapter 5

Fast Dive

A long-form quick reference compiled from multiple sources. Included as an appendix-style read.