Skip to content

Latest commit

 

History

History
118 lines (106 loc) · 6.91 KB

preface.md

File metadata and controls

118 lines (106 loc) · 6.91 KB

TypeScript Handbook(中文版)

TypeScript 2.3 正式发布!

从前打心眼儿里讨厌编译成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!!!相关链接的末尾可以找到本手册的Github地址

目录

  • 快速上手
    • [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
    • Knockout.js
    • [React与webpack](./doc/handbook/tutorials/React & Webpack.html)
    • React
    • [Angular 2](./doc/handbook/tutorials/Angular 2.html)
    • [从JavaScript迁移到TypeScript](./doc/handbook/tutorials/Migrating from JavaScript.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)
  • 手册
    • [基础类型](./doc/handbook/Basic Types.html)
    • [变量声明](./doc/handbook/Variable Declarations.html)
    • 接口
    • 函数
    • 泛型
    • 枚举
    • [类型推论](./doc/handbook/Type Inference.html)
    • [类型兼容性](./doc/handbook/Type Compatibility.html)
    • [高级类型](./doc/handbook/Advanced Types.html)
    • Symbols
    • [Iterators 和 Generators](./doc/handbook/Iterators and Generators.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
    • Decorators
    • 混入
    • [三斜线指令](./doc/handbook/Triple-Slash Directives.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)
  • 工程配置
    • tsconfig.json
    • [NPM包的类型](./doc/handbook/Typings for NPM Packages.html)
    • [编译选项](./doc/handbook/Compiler Options.html)
    • [在MSBuild里使用编译选项](./doc/handbook/Compiler Options in MSBuild.html)
    • [与其它构建工具整合](./doc/handbook/Integrating with Build Tools.html)
    • [使用TypeScript的每日构建版本](./doc/handbook/Nightly Builds.html)
  • Wiki
  • Breaking Changes
    • [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)

主要修改 (Latest 5 updates)

  • 2017-05-16 新增章节:[教程-5分钟了解TypeScript](./doc/handbook/tutorials/TypeScript in 5 minutes.html)
  • 2017-05-01 新增章节:教程-React
  • 2016-11-27 新增章节:[使用/// <reference types="..." />](./doc/handbook/Triple-Slash Directives.html)
  • 2016-11-23 新增章节:[变量声明 - 展开操作符](./doc/handbook/Variable Declarations.html)
  • 2016-10-23 新增章节:[高级类型 - 可辨识联合(Discriminated Unions)](./doc/handbook/Advanced Types.html)
  • 2016-10-07 新增章节:[从JavaScript迁移到TypeScript](./doc/handbook/tutorials/Migrating from JavaScript.html)

相关链接