TypeScript Documentation
Get Started
Quick introductions based on your background or preference.
- TS for the New Programmer
- TypeScript for JS Programmers
- TS for Java/C# Programmers
- TS for Functional Programmers
- TypeScript Tooling in 5 minutes
Handbook
A great first read for your daily TS work.
- The TypeScript Handbook
- The Basics
- Everyday Types
- Narrowing
- More on Functions
- Object Types
Type Manipulation
- Generics
- Keyof Type Operator
- Typeof Type Operator
- Indexed Access Types
- Conditional Types
- Mapped Types
- Modules
We also have an epub and pdf version of the Handbook.
Reference
Deep dive reference materials.
- Utility Types
- Decorators
- Declaration Merging
- Enums
- Iterators and Generators
- JSX
- Mixins
- Modules
- Module Resolution
- Namespaces
- Namespaces and Modules
- Symbols
- Triple-Slash Directives
- Type Compatibility
- Type Inference
- Variable Declaration
Tutorials
Using TypeScript in several environments.
Declaration Files
Learn how to write declaration files to describe existing JavaScript. Important for DefinitelyTyped contributions.
- Introduction
- Declaration Reference
- Library Structures
.d.ts Templates
- Module: Plugin
- Module: Class
- Module: Function
- Global .d.ts
- Deep Dive
- Publishing
- Consumption
JavaScript
How to use TypeScript-powered JavaScript tooling.
- JS Projects Utilizing TypeScript
- Type Checking JavaScript Files
- JSDoc Reference
- Creating .d.ts Files from .js files
Project Configuration
Compiler configuration reference.
- What is a tsconfig.json
- Compiler Options in MSBuild
- TSConfig Reference
- tsc CLI Options
- Project References
- Integrating with Build Tools
- Configuring Watch
- Nightly Builds