In this section, we are going to learn what the main components in the TypeScript compiler are. We are going to learn the main responsibility of each of the components, as well as what their expected inputs and outputs are.
The following diagram describes the main components of the TypeScript architecture:
The core TypeScript API is the foundation of everything, and is composed of elements such as the scanner, parser, binder, type checker, and emitter.
The language services and the standalone compiler (the tsc command-line tool) sit on top of the core compiler APIs. Finally, the Visual Studio shim and the TypeScript standalone server (tsserver) are designed to facilitate the integration of TypeScript with Visual Studio and other source code editors.
The official TypeScript documentation...