3 ms·
Checkout TypeScript. It's great.
by shinypotatoe 9y ago
Checkout TypeScript. It's great.
- pier25 9y agoI know, but it's not JavaScript.
- Veen 9y agoFor 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.
- roboguy12 9y agoAnd, 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.
- pier25 9y agoYes 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 https://vuejs.org/v2/guide/typescript.html