The TypeScript programming language was developed by Microsoft and is maintained by Microsoft. Syntactically, it is a superset of JavaScript and has optional static typing. The TypeScript language is optimized for developing large applications, and it is translatable into JavaScript. As TypeScript is a subset of JavaScript, existing JavaScript programs can also be written in TypeScript. JavaScript is an interpreted language. Th erefore, it must be run to ensure its validity. The TypeScript transpiler provides the error-checking feature. Whenever TypeScript detects a syntax error, it will compile the code and generate compilation errors. TypeScript is a strongly typed, object-oriented, compiled language. It was designed by Anders Hejlsberg (designer of C#) at Microsoft. TypeScript is both a language and a set of tools. TypeScript is a typed superset of JavaScript compiled to JavaScript. In other words, TypeScript is JavaScript plus some additional features. TypeScript code is not understandable by the browsers. That’s why if the code is written in TypeScript then it is compiled and converted the code i.e. translate the code into JavaScript.The above process is known as Trans-piled. With the help of JavaScript code, browsers can read the code and display it.
TypeScript always highlights errors at compilation time during the time of development. TypeScript supports strongly typed or static typing. TypeScript code can be run on any browser, device, or operating system. TypeScript is not specific to any Virtual-machine etc. With TypeScript, developers can use existing JavaScript code, incorporate popular JavaScript libraries, and can be called from other JavaScript code.