TypeScript compiler
The TypeScript compiler analyzes and checks TypeScript source code and can emit JavaScript and declaration files.
Essential TypeScript 5, Third Edition
The TypeScript compiler translates TypeScript source files into JavaScript files and performs TypeScript and optionally JavaScript diagnostics.
- How it is used
- Transforms TypeScript into runnable JavaScript while checking code for JavaScript and TypeScript errors.
- How deep it goes
- Works through project configuration, diagnostics, emission behavior, JavaScript targets, and module formats; does not explain compiler implementation internals.
- Examples
- Uses `src/index.ts` and `dist/index.js`, a mismatched function argument, ES5 output, and a two-file module application.
- What you can do after
- Operate/configure it with `tsc` and `tsconfig.json` to compile, inspect diagnostics, and choose output for a target runtime.
Read how Essential TypeScript 5, Third Edition explains TypeScript compiler →
Pro Angular 16
The TypeScript compiler checks TypeScript source and emits JavaScript output without retaining TypeScript-only type annotations in the generated JavaScript.
- How it is used
- Generates browser-ready JavaScript from TypeScript source during Angular development builds.
- How deep it goes
- Explains type-checking errors and the compiler’s place in the build, but does not detail compiler internals or manual invocation.
- Examples
- Uses typed to-do classes, edits to main.ts, browser console output, and generated bundle names.
- What you can do after
- Diagnose/debug with it by recognizing type-checking errors and distinguishing TypeScript compilation from template compilation and bundling.
Related concepts
- JavaScriptproduces · JavaScript is a high-level, dynamically typed, multi-paradigm programming language standardized as ECMAScript and used for web and general-purpose programming.
- tsconfig.jsonconfigured by · tsconfig.json is a TypeScript project configuration file specifying compiler options, source files, type libraries, and related compilation settings.
- TypeScript declaration fileuses · A TypeScript declaration file is a .d.ts file containing type declarations that describe the types and interfaces of code without providing executable implementations.
- type hintsuses · Type hints are source-code annotations that indicate the intended or expected types of program elements and can support documentation, tooling, or type checking.
- type checkinguses · Type checking is the process of determining whether values, expressions, or operations conform to the rules or constraints of a type system.
- type inferenceuses · Type inference is the automatic deduction of program or expression types from available values, context, and constraints without requiring explicit type annotations.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

