DEV Community

Discussion on: TypeScript vs JavaScript

Collapse
 
ecyrbe profile image
ecyrbe • Edited

Typescript being just a superset of JavaScript (JavaScript with type anotations) it could happen. You just need to remove two things from typescript for this to happen:

  • enums which is not in javascript
  • @ annotations who are also not in javascript

And to contradict other people that talked about wasm, transpiling typescript to wasm is an horrible Idea. See last video of the developpers at typescript conf why it is horrible.