liveBook · Manning

TypeScript compiler

The TypeScript compiler analyzes and checks TypeScript source code and can emit JavaScript and declaration files.

How 2 Manning books explain it

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.

Read how Pro Angular 16 explains TypeScript compiler →

Related concepts

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.