Re:ECMAScript 2017 Language Specification
by pier25 on Wednesday July 12, 2017 @10:03AM
(#14752573)
I know, but it's not JavaScript.
[ Parent
| on HN ]
For the most part it is JavaScript. JavaScript is valid Typescript, because Typescript is a superset. Typescript just gets you type annotations and "future" JavaScript features, none of which you're forced to use.
Yes I know, but again, it's not JavaScript and there will always be headaches here and there.
For example: https://vuejs.org/v2/guide/typescript.html
Re:ECMAScript 2017 Language Specification
by roboguy12 on Wednesday July 12, 2017 @04:29PM
(#14756348)
And, when you compile it to JavaScript, you can choose the target language level. So, you could write Typescript and have it compile such that in essence, all it does is strip out the type annotations.