You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: public/docs/js/latest/cookbook/ts-to-js.jade
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ include ../../../../_includes/_util-fns
16
16
:marked
17
17
## Table of contents
18
18
19
+
[From TS to ES6 to ES5](#from-ts)
20
+
19
21
[Modularity: imports and exports](#modularity)
20
22
21
23
[Classes and Class Metadata](#class-metadata)
@@ -29,6 +31,35 @@ include ../../../../_includes/_util-fns
29
31
**Run and compare the live <live-example name="cb-ts-to-js">TypeScript</live-example> and <live-example name="cb-ts-to-js" lang="js">JavaScript</live-example>
30
32
code shown in this cookbook.**
31
33
34
+
a(id="from-ts")
35
+
.l-main-section
36
+
:marked
37
+
## From TS to ES6 to ES5
38
+
39
+
Since TypeScript is a superset of ES6 Javascript, and ES6 itself is a superset of ES5, the
40
+
transformation of Typescript code all the way to ES5 javascript can be seen as "shedding"
41
+
features.
42
+
43
+
When going from TypeScript to ES6 with decorators, we mostly remove
0 commit comments