-
TypeScript
is a strict superset ofECMAScript 2015
, which is itself a superset of ECMAScript 5, commonly referred to as JavaScript. As such, a JavaScript program is also a valid TypeScript program, and a TypeScript program can seamlessly consumeJavaScript
. -
A superset of JavaScript, TypeScript offers all of the features of JavaScript plus some additional perks. TypeScript intrinsically encourages us to code cleanly, making the code more scalable.
- Provide Javascript developers with an optional type system
- Provide Javascript developers with the ability to utilize planned features from future Javascript editions against current Javascript engines