131 lines
7.5 KiB
Markdown
131 lines
7.5 KiB
Markdown
# TypeScript Handbook(中文版)
|
||
|
||
<img src="./misc/ts_logo.jpg" alt="TypeScript" width="24px" height="24px" style="vertical-align: bottom;"> [TypeScript 3.0 (July 30, 2018)](https://blogs.msdn.microsoft.com/typescript/2018/07/30/announcing-typescript-3-0/)
|
||
|
||
> 从前打心眼儿里讨厌编译成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)*
|
||
在[相关链接](#相关链接)的末尾可以找到本手册的[Github地址](https://github.com/zhongsp/TypeScript)。
|
||
|
||
## 目录
|
||
|
||
* [快速上手](./doc/handbook/tutorials/README.html)
|
||
* [5分钟了解TypeScript](./doc/handbook/tutorials/TypeScript in 5 minutes.html)
|
||
* [ASP.NET Core](./doc/handbook/tutorials/ASP.NET Core.html)
|
||
* [ASP.NET 4](./doc/handbook/tutorials/ASP.NET 4.html)
|
||
* [Gulp](./doc/handbook/tutorials/Gulp.html)
|
||
* [Knockout.js](./doc/handbook/tutorials/Knockout.html)
|
||
* [React与webpack](./doc/handbook/tutorials/React & Webpack.html)
|
||
* [React](./doc/handbook/tutorials/React.html)
|
||
* [Angular 2](./doc/handbook/tutorials/Angular 2.html)
|
||
* [从JavaScript迁移到TypeScript](./doc/handbook/tutorials/Migrating from JavaScript.html)
|
||
* [手册](./doc/handbook/README.html)
|
||
* [基础类型](./doc/handbook/Basic Types.html)
|
||
* [变量声明](./doc/handbook/Variable Declarations.html)
|
||
* [接口](./doc/handbook/Interfaces.html)
|
||
* [类](./doc/handbook/Classes.html)
|
||
* [函数](./doc/handbook/Functions.html)
|
||
* [泛型](./doc/handbook/Generics.html)
|
||
* [枚举](./doc/handbook/Enums.html)
|
||
* [类型推论](./doc/handbook/Type Inference.html)
|
||
* [类型兼容性](./doc/handbook/Type Compatibility.html)
|
||
* [高级类型](./doc/handbook/Advanced Types.html)
|
||
* [实用工具类型](./doc/handbook/Utilit Types.html)
|
||
* [Symbols](./doc/handbook/Symbols.html)
|
||
* [Iterators 和 Generators](./doc/handbook/Iterators and Generators.html)
|
||
* [模块](./doc/handbook/Modules.html)
|
||
* [命名空间](./doc/handbook/Namespaces.html)
|
||
* [命名空间和模块](./doc/handbook/Namespaces and Modules.html)
|
||
* [模块解析](./doc/handbook/Module Resolution.html)
|
||
* [声明合并](./doc/handbook/Declaration Merging.html)
|
||
* [书写.d.ts文件](./doc/handbook/Writing Definition Files.html)
|
||
* [JSX](./doc/handbook/JSX.html)
|
||
* [Decorators](./doc/handbook/Decorators.html)
|
||
* [混入](./doc/handbook/Mixins.html)
|
||
* [三斜线指令](./doc/handbook/Triple-Slash Directives.html)
|
||
* [JavaScript文件里的类型检查](./doc/handbook/Type Checking JavaScript Files.html)
|
||
* [如何书写声明文件](./doc/handbook/declaration files/Introduction.html)
|
||
* [结构](./doc/handbook/declaration files/Library Structures.html)
|
||
* [规范](./doc/handbook/declaration files/Do's and Don'ts.html)
|
||
* [举例](./doc/handbook/declaration files/By Example.html)
|
||
* [深入](./doc/handbook/declaration files/Deep Dive.html)
|
||
* [发布](./doc/handbook/declaration files/Publishing.html)
|
||
* [使用](./doc/handbook/declaration files/Consumption.html)
|
||
* [工程配置](./doc/handbook/tsconfig.json.html)
|
||
* [tsconfig.json](./doc/handbook/tsconfig.json.html)
|
||
* [工程引用](./doc/handbook/Project References.html)
|
||
* [NPM包的类型](./doc/handbook/Typings for NPM Packages.html)
|
||
* [编译选项](./doc/handbook/Compiler Options.html)
|
||
* [配置 Watch](./doc/handbook/Configuring Watch.html)
|
||
* [在MSBuild里使用编译选项](./doc/handbook/Compiler Options in MSBuild.html)
|
||
* [与其它构建工具整合](./doc/handbook/Integrating with Build Tools.html)
|
||
* [使用TypeScript的每日构建版本](./doc/handbook/Nightly Builds.html)
|
||
* [Wiki](./doc/wiki/README.html)
|
||
* [TypeScript里的this](./doc/wiki/this-in-TypeScript.html)
|
||
* [编码规范](./doc/wiki/coding_guidelines.html)
|
||
* [常见编译错误](./doc/wiki/Common Errors.html)
|
||
* [支持TypeScript的编辑器](./doc/wiki/TypeScript-Editor-Support.html)
|
||
* [结合ASP.NET v5使用TypeScript](./doc/wiki/Using-TypeScript-With-ASP.NET-5.html)
|
||
* [架构概述](./doc/wiki/Architectural-Overview.html)
|
||
* [发展路线图](./doc/wiki/Roadmap.html)
|
||
* [新增功能](./doc/release-notes/README.html)
|
||
* [TypeScript 3.1](./doc/release-notes/TypeScript 3.1.html)
|
||
* [TypeScript 3.0](./doc/release-notes/TypeScript 3.0.html)
|
||
* [TypeScript 2.9](./doc/release-notes/TypeScript 2.9.html)
|
||
* [TypeScript 2.8](./doc/release-notes/TypeScript 2.8.html)
|
||
* [TypeScript 2.7](./doc/release-notes/TypeScript 2.7.html)
|
||
* [TypeScript 2.6](./doc/release-notes/TypeScript 2.6.html)
|
||
* [TypeScript 2.5](./doc/release-notes/TypeScript 2.5.html)
|
||
* [TypeScript 2.4](./doc/release-notes/TypeScript 2.4.html)
|
||
* [TypeScript 2.3](./doc/release-notes/TypeScript 2.3.html)
|
||
* [TypeScript 2.2](./doc/release-notes/TypeScript 2.2.html)
|
||
* [TypeScript 2.1](./doc/release-notes/TypeScript 2.1.html)
|
||
* [TypeScript 2.0](./doc/release-notes/TypeScript 2.0.html)
|
||
* [TypeScript 1.8](./doc/release-notes/TypeScript 1.8.html)
|
||
* [TypeScript 1.7](./doc/release-notes/TypeScript 1.7.html)
|
||
* [TypeScript 1.6](./doc/release-notes/TypeScript 1.6.html)
|
||
* [TypeScript 1.5](./doc/release-notes/TypeScript 1.5.html)
|
||
* [TypeScript 1.4](./doc/release-notes/TypeScript 1.4.html)
|
||
* [TypeScript 1.3](./doc/release-notes/TypeScript 1.3.html)
|
||
* [TypeScript 1.1](./doc/release-notes/TypeScript 1.1.html)
|
||
* [Breaking Changes](./doc/breaking-changes/breaking-changes.html)
|
||
* [TypeScript 3.1](./doc/breaking-changes/TypeScript 3.1.html)
|
||
* [TypeScript 2.8](./doc/breaking-changes/TypeScript 2.8.html)
|
||
* [TypeScript 2.7](./doc/breaking-changes/TypeScript 2.7.html)
|
||
* [TypeScript 2.6](./doc/breaking-changes/TypeScript 2.6.html)
|
||
* [TypeScript 2.4](./doc/breaking-changes/TypeScript 2.4.html)
|
||
* [TypeScript 2.3](./doc/breaking-changes/TypeScript 2.3.html)
|
||
* [TypeScript 2.2](./doc/breaking-changes/TypeScript 2.2.html)
|
||
* [TypeScript 2.1](./doc/breaking-changes/TypeScript 2.1.html)
|
||
* [TypeScript 2.0](./doc/breaking-changes/TypeScript 2.0.html)
|
||
* [TypeScript 1.8](./doc/breaking-changes/TypeScript 1.8.html)
|
||
* [TypeScript 1.7](./doc/breaking-changes/TypeScript 1.7.html)
|
||
* [TypeScript 1.6](./doc/breaking-changes/TypeScript 1.6.html)
|
||
* [TypeScript 1.5](./doc/breaking-changes/TypeScript 1.5.html)
|
||
* [TypeScript 1.4](./doc/breaking-changes/TypeScript 1.4.html)
|
||
|
||
## 最新修改
|
||
|
||
* 2018-08-15 新增章节:[工程引用](./doc/handbook/Project References.html)
|
||
* [TypeScript 3.0](./doc/release-notes/TypeScript 3.0.html)
|
||
|
||
## 相关链接
|
||
|
||
* [TypeScript官网](http://typescriptlang.org)
|
||
* [TypeScript on Github](https://github.com/Microsoft/TypeScript)
|
||
* [TypeScript语言规范](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.html)
|
||
* [本手册中文版Github地址](https://github.com/zhongsp/TypeScript)
|