Loading topic
tsc from a terminal. Installing and configuring the compiler comes in later chapters. For now, paste the examples into the TypeScript Playground or into a project where npx tsc --noEmit works. The6 min readtsc does between your .ts file and the JavaScript that runs. It assumes you can read JavaScript with modules, you can use a terminal, and you know that TypeScript adds type annotations to JavaScript. You do not need to have installed the compiler yet. The next chapters6 min readpackage.json is. You don't need to know any TypeScript syntax yet. By the end you will have the compiler installed in a project, know where it lives on disk, and be able to diagnose the usual installation pr6 min readtsc checks it, and JavaScript comes out. It also covers what happens when the check fails, which surprises many newcomers.6 min readtsc through npx, that you know what a compile step does, and that you can read a package.json. You should also be comfortable with JavaScript modules. Here you learn how tsc finds and reads its configuration file, how that file selects input files, and how to6 min readnpx tsc and that a tsconfig.json exists in your project, as covered in the previous chapters. You should also know how import and export work in JavaScript modules, and how a Node project's package.json is laid out.5 min readtsc and that you have a tsconfig.json with target, module, outDir, rootDir, and include. Here you will learn what the strict option does, how its individual flags change what the compiler accepts, and how to adopt it in an e5 min readnpx tsc in a project with a tsconfig.json, as set up in the previous chapters. You should also know what include, outDir, and noEmit do. It covers what tsc --watch does, how to configure it, and the problems you are most likely to hit.6 min readtsc with a tsconfig.json, and that you know the compiler checks types and then erases them to produce JavaScript. Here you will learn which options decide whether tsc writes files, which files it writes, and how to avoid the usual mistakes.6 min readtsc with a tsconfig.json, that your project has a package.json, and that you know how import works in Node. Here you will learn what .d.ts files are, where the compiler finds them, and what to do when a JavaScript library has no types.5 min readtsc and read a tsconfig.json. It also assumes you know what strict, noEmit, and outDir do. It covers how tsc sits next to other tools in a real project. Editors, bundlers, and runners each handle only part of the job tsc does.6 min readtsc fast as a codebase grows: incremental compilation and project references. It assumes you can run tsc with npx, you know the tsconfig.json options from earlier chapters (outDir, rootDir, include, strict), and you know what --noEmit and 6 min read