liveBook · Manning

TypeScript compiler

Also called TSC

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

How 4 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 →

Secrets of the JavaScript Ninja, Third Edition

A tool that compiles TypeScript source code to JavaScript, optionally targeting a selected ECMAScript version.

How it is used
Checks TypeScript types before execution and can emit JavaScript for a selected ECMAScript target.
How deep it goes
Demonstrates installation, starter configuration, type errors, and output, but defers comprehensive tsconfig options.
Examples
Uses mismatched function arguments and an invalid setTimeout call to demonstrate compiler errors.
What you can do after
Operate it through npm, tsc --init, and tsc to configure, type-check, and compile project files.

Read how Secrets of the JavaScript Ninja, Third Edition explains TypeScript compiler →

Acing the Frontend Interview

The TypeScript compiler analyzes TypeScript source and declaration information and emits JavaScript and optionally declaration files.

How it is used
Supports TypeScript compilation, JavaScript-library interop, package type distribution, and evolving direct Node.js execution workflows.
How deep it goes
Explains emitted declarations, custom type definitions, and transpilation context, but does not detail the compiler implementation internals.
Examples
Uses .d.ts files, @types packages, custom declarations, and Node.js commands for stripping or transforming TypeScript syntax.
What you can do after
Operate/configure TypeScript projects with declaration files and evaluate when traditional compilation or emerging native execution fits.

Read how Acing the Frontend Interview explains TypeScript compiler →

What to know first

Related concepts

Questions about TypeScript compiler

What is TypeScript compiler?

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

Which Manning books explain TypeScript compiler?

Essential TypeScript 5, Third Edition, Pro Angular 16, Secrets of the JavaScript Ninja, Third Edition and Acing the Frontend Interview.

What should I know before learning TypeScript compiler?

Manning books that teach TypeScript compiler usually introduce JavaScript, package, type hints and TypeScript first.

What is TypeScript compiler also called?

TypeScript compiler is also called TSC.

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.