3 ms·
Ahem... TypeScript is 100% Javascript, they only add optional type annotations. The "to-ES5" compilation serves a different issue - that's just a different vers
by Noseshine 10y ago
Ahem... TypeScript is 100% Javascript, they only add optional type annotations. The "to-ES5" compilation serves a different issue - that's just a different version of Javascript.
- mark_l_watson 10y agoBut I use the surface TypeScript syntax for the book examples. It is a clear and concise notation, which is why I like it for this use case.
- Noseshine 10y agoI have no idea what you mean by > surface TypeScript syntax TypeScript syntax is... Javascript (ES 2015 or above) - plus the optional type annotations and some few minor additions like "enum" or decorators. Things like "interface" don't compile to actual code, they only serve the compile-time type checks.