2017-07-22 23:51:25 -04:00
|
|
|
|
@description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Transpile
|
|
|
|
|
|
|
|
|
|
## 转译(transpile)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="l-sub-section">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The process of transforming code written in one form of JavaScript
|
|
|
|
|
(such as TypeScript) into another form of JavaScript (such as [ES5](_fragments/glossary-t2#es5)).
|
|
|
|
|
|
|
|
|
|
把一种形式的 JavaScript(例如 TypeScript)转换成另一种形式的 JavaScript(例如 [ES5](_fragments/glossary-t2#es5))的过程。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## TypeScript
|
|
|
|
|
|
2017-08-04 02:06:15 -04:00
|
|
|
|
## TypeScript 语言
|
|
|
|
|
|
2017-07-22 23:51:25 -04:00
|
|
|
|
|
|
|
|
|
<div class="l-sub-section">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A version of JavaScript that supports most [ECMAScript 2015](_fragments/glossary-t2#es2015)
|
|
|
|
|
language features such as [decorators](_fragments/glossary-t2#decorator).
|
|
|
|
|
|
|
|
|
|
JavaScript 的一个版本,支持了几乎所有 [ECMAScript 2015](_fragments/glossary-t2#ecmascript=2015) 语言特性,例如[装饰器 (decorator)](_fragments/glossary-t2#decorator))。
|
|
|
|
|
|
|
|
|
|
TypeScript is also notable for its optional typing system, which provides
|
|
|
|
|
compile-time type checking and strong tooling support (such as "intellisense,"
|
|
|
|
|
code completion, refactoring, and intelligent search). Many code editors
|
|
|
|
|
and IDEs support TypeScript either natively or with plugins.
|
|
|
|
|
|
|
|
|
|
TypeScript 还以它的可选类型系统而著称。
|
|
|
|
|
该类型系统提供了编译时类型检查和强大的工具支持(例如 “Intellisense”,代码补齐,重构和智能搜索等)。
|
|
|
|
|
许多代码编辑器和 IDE 都原生支持 TypeScript 或通过插件提供支持。
|
|
|
|
|
|
|
|
|
|
TypeScript is the preferred language for Angular development, although
|
|
|
|
|
you can use other JavaScript dialects such as [ES5](_fragments/glossary-t2#es5).
|
|
|
|
|
|
|
|
|
|
TypeScript 是 Angular 的首选语言,当然,你可以使用其它 JavaScript 方言,例如[ES5](_fragments/glossary-t2#es5)。
|
|
|
|
|
|
|
|
|
|
Read more about TypeScript at [typescriptlang.org](http://www.typescriptlang.org/).
|
|
|
|
|
|
|
|
|
|
更多信息,见[typescript.org](http://www.typescriptlang.org/)。
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|