> For the complete documentation index, see [llms.txt](https://monksoul.gitbook.io/typescript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://monksoul.gitbook.io/typescript/master.md).

# Introduction

> 从前打心眼儿里讨厌编译成JavaScript的这类语言，像Coffee，Dart等。 但是在15年春节前后却爱上了TypeScript。 同时非常喜欢的框架Dojo，Angularjs也宣布使用TypeScript做新版本的开发。 那么TypeScript究竟为何物？又有什么魅力呢？

TypeScript是Microsoft公司注册商标。

TypeScript具有类型系统，且是JavaScript的超集。 它可以编译成普通的JavaScript代码。 TypeScript支持任意浏览器，任意环境，任意系统并且是开源的。

TypeScript目前还在积极的开发完善之中，不断地会有新的特性加入进来。 因此本手册也会紧随官方的每个commit，不断地更新新的章节以及修改措词不妥之处。

如果你对TypeScript一见钟情，可以订阅~~and star~~本手册，及时了解ECMAScript 2015以及2016里新的原生特性，并借助TypeScript提前掌握使用它们的方式！ 如果你对TypeScript的爱愈发浓烈，可以与楼主一起边翻译边学习，[*PRs Welcome!!!*](https://github.com/zhongsp/TypeScript/pulls) 在[相关链接](https://monksoul.gitbook.io/typescript/pages/-MFSWf9yRhv_6M39FeTx#相关链接)的末尾可以找到本手册的[Github地址](https://github.com/zhongsp/TypeScript)。

## 目录

* [快速上手](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/README.html)
  * [5分钟了解TypeScript](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/TypeScript%20in%205%20minutes.html)
  * [ASP.NET Core](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/ASP.NET%20Core.html)
  * [ASP.NET 4](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/ASP.NET%204.html)
  * [Gulp](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/Gulp.html)
  * [Knockout.js](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/Knockout.html)
  * [React与webpack](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/React%20&%20Webpack.html)
  * [React](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/React.html)
  * [Angular 2](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/Angular%202.html)
  * [从JavaScript迁移到TypeScript](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tutorials/Migrating%20from%20JavaScript.html)
* [手册](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/README.html)
  * [基础类型](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Basic%20Types.html)
  * [变量声明](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Variable%20Declarations.html)
  * [接口](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Interfaces.html)
  * [类](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Classes.html)
  * [函数](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Functions.html)
  * [泛型](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Generics.html)
  * [枚举](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Enums.html)
  * [类型推论](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Type%20Inference.html)
  * [类型兼容性](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Type%20Compatibility.html)
  * [高级类型](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Advanced%20Types.html)
  * [实用工具类型](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Utilit%20Types.html)
  * [Symbols](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Symbols.html)
  * [Iterators 和 Generators](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Iterators%20and%20Generators.html)
  * [模块](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Modules.html)
  * [命名空间](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Namespaces.html)
  * [命名空间和模块](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Namespaces%20and%20Modules.html)
  * [模块解析](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Module%20Resolution.html)
  * [声明合并](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Declaration%20Merging.html)
  * [书写.d.ts文件](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Writing%20Definition%20Files.html)
  * [JSX](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/JSX.html)
  * [Decorators](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Decorators.html)
  * [混入](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Mixins.html)
  * [三斜线指令](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Triple-Slash%20Directives.html)
  * [JavaScript文件里的类型检查](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Type%20Checking%20JavaScript%20Files.html)
* [如何书写声明文件](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/declaration%20files/Introduction.html)
  * [结构](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/declaration%20files/Library%20Structures.html)
  * \[规范]\(./doc/handbook/declaration files/Do's and Don'ts.html)
  * [举例](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/declaration%20files/By%20Example.html)
  * [深入](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/declaration%20files/Deep%20Dive.html)
  * [发布](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/declaration%20files/Publishing.html)
  * [使用](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/declaration%20files/Consumption.html)
* [工程配置](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tsconfig.json.html)
  * [tsconfig.json](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/tsconfig.json.html)
  * [工程引用](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Project%20References.html)
  * [NPM包的类型](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Typings%20for%20NPM%20Packages.html)
  * [编译选项](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Compiler%20Options.html)
  * [配置 Watch](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Configuring%20Watch.html)
  * [在MSBuild里使用编译选项](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Compiler%20Options%20in%20MSBuild.html)
  * [与其它构建工具整合](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Integrating%20with%20Build%20Tools.html)
  * [使用TypeScript的每日构建版本](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Nightly%20Builds.html)
* [Wiki](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/README.html)
  * [TypeScript里的this](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/this-in-TypeScript.html)
  * [编码规范](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/coding_guidelines.html)
  * [常见编译错误](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/Common%20Errors.html)
  * [支持TypeScript的编辑器](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/TypeScript-Editor-Support.html)
  * [结合ASP.NET v5使用TypeScript](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/Using-TypeScript-With-ASP.NET-5.html)
  * [架构概述](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/Architectural-Overview.html)
  * [发展路线图](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/wiki/Roadmap.html)
* [新增功能](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/README.html)
  * [TypeScript 3.7](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.7.html)
  * [TypeScript 3.6](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.6.html)
  * [TypeScript 3.5](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.5.html)
  * [TypeScript 3.3](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.3.html)
  * [TypeScript 3.2](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.2.html)
  * [TypeScript 3.1](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.1.html)
  * [TypeScript 3.0](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.0.html)
  * [TypeScript 2.9](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.9.html)
  * [TypeScript 2.8](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.8.html)
  * [TypeScript 2.7](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.7.html)
  * [TypeScript 2.6](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.6.html)
  * [TypeScript 2.5](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.5.html)
  * [TypeScript 2.4](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.4.html)
  * [TypeScript 2.3](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.3.html)
  * [TypeScript 2.2](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.2.html)
  * [TypeScript 2.1](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.1.html)
  * [TypeScript 2.0](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%202.0.html)
  * [TypeScript 1.8](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.8.html)
  * [TypeScript 1.7](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.7.html)
  * [TypeScript 1.6](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.6.html)
  * [TypeScript 1.5](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.5.html)
  * [TypeScript 1.4](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.4.html)
  * [TypeScript 1.3](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.3.html)
  * [TypeScript 1.1](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%201.1.html)
* [Breaking Changes](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/breaking-changes.html)
  * [TypeScript 3.6](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%203.6.html)
  * [TypeScript 3.1](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%203.1.html)
  * [TypeScript 2.8](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.8.html)
  * [TypeScript 2.7](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.7.html)
  * [TypeScript 2.6](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.6.html)
  * [TypeScript 2.4](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.4.html)
  * [TypeScript 2.3](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.3.html)
  * [TypeScript 2.2](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.2.html)
  * [TypeScript 2.1](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.1.html)
  * [TypeScript 2.0](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%202.0.html)
  * [TypeScript 1.8](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%201.8.html)
  * [TypeScript 1.7](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%201.7.html)
  * [TypeScript 1.6](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%201.6.html)
  * [TypeScript 1.5](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%201.5.html)
  * [TypeScript 1.4](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/breaking-changes/TypeScript%201.4.html)

## 最新修改

* 2018-08-15 新增章节：[工程引用](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/handbook/Project%20References.html)
* [TypeScript 3.0](https://github.com/monksoul/typescript/tree/23d2215b53aee777b00ac3f75cf5a5df06bd92f7/doc/release-notes/TypeScript%203.0.html)

## 相关链接

* [TypeScript官网](http://typescriptlang.org)
* [TypeScript on Github](https://github.com/Microsoft/TypeScript)
* [TypeScript语言规范](https://github.com/microsoft/TypeScript/blob/master/doc/spec.md)
* [本手册中文版Github地址](https://github.com/zhongsp/TypeScript)
