TypeScript
TypeScript is a language developed by Microsoft and is a superset of JavaScript. TypeScript transpiles into JavaScript at compile time. Visual Studio 2015 automatically builds the TypeScript into JavaScript files and places them inside a folder configured with the TypeScript.tsconfig
configuration file. It provides a lot more than JavaScript provides, but developers can still use some of the types and objects in TypeScript that they use in JavaScript. However, TypeScript generates cleaner and more optimized code, which is then run by the Angular 2 framework. So, when the TypeScript compiles, it generates JavaScript and stores a map file to handle debugging scenarios. Suppose you want to debug your TypeScript code from Visual Studio 2015; this mapping file contains the mapping information of the source TypeScript file and generated JavaScript file being run inside your Angular page and the break points can be set on your TypeScript file.
Compilation architecture of TypeScript
The...