An interactive handbook for modern developers.

TypeScript makes it easy to build great software. This free guide helps anyone learn the TypeScript programming language, with thousands of code examples that run in your web browser.

No need to install anything

You can edit any code example with full TypeScript error checking, and run it within your browser. Try clicking "Run" and modifying the code example below.

Loading TypeScript...

TypeScript wisdom delivered to your inbox

Join a growing community of TypeScript enthusiasts, and learn something new every week. No spam, I promise.

Handbook

Basics

The fundamental ideas of TypeScript, and how it relates to JavaScript.

Start reading

Branching

Conditionally executing instructions based on data.

Start reading

Functions

Reusable blocks of code that can transform inputs into outputs.

Start reading

Arrays

A sequence of values.

Start reading

Strings

A deep dive into how strings are manipulated, encoded, decoded, and typed.

Start reading

Types

A detailed look at how the TypeScript type system works.

Start reading

Objects

The most common way to organize information and represent external concepts.

Start reading

Maps and Sets

Built-in data structures for storing collections and mappings.

Start reading

Promises

Reusable blocks of code that can transform inputs into outputs.

Start reading

Generic Types

Methods for dynamically constructing types from other types.

Start reading

Advanced Types

Advanced features of the type system, like unions, intersections, and tuples.

Start reading

Utility Types

Facilitate common type transformations with a variety of built-in types.

Start reading

Classes

Classes are a template for creating objects.

Start reading

Modules

Modules.

Start reading

Namespaces

Namespaces.

Start reading

Decorators

A powerful experimental feature.

Start reading

Was this page helpful?