Loading topic
npx tsc from a Node.js project. This chapter explains how TypeScript decides which files belong to a compilation.2 min readnpx tsc from a Node.js project. You should also know that a JavaScript runtime is the environment that executes your compiled code, such as Node.js, a browser, or a serverless platform.2 min readnpm and tsc from a terminal. This chapter focuses on how TypeScript chooses a module format and finds imported files.1 min readtsc from a terminal, and understand JSON configuration files. This chapter focuses on what TypeScript writes after it compiles your source files.2 min readstrict compiler option changes type checking. It does not change the JavaScript runtime. It makes the compiler report more situations where your code could fail.1 min readnpx tsc. This chapter focuses on one compiler option: noImplicitAny.2 min readtsc. You will learn how strictNullChecks prevents code from using a value before checking that it exists.1 min read"strict": true is enabled in tsconfig.json. The strictPropertyInitialization option checks that every required instance property receives a value before the constructor finishes.2 min readstrict: true enables a group of related compiler checks. The options here make function calls safer by checking parameter compatibility and the type of this.2 min readtsconfig.json, and how to run tsc. It focuses on two compiler options: useUnknownInCatchVariables and alwaysStrict.2 min readnpx tsc. The strict option enables several type-safety checks, but it does not enable every useful compiler check. Some risks need separate options because they depend on project style or runtime behavior.1 min readtsc from a terminal. You will learn how multiple projects can share one compiler configuration while keeping package-specific settings separate.2 min readtsconfig.json, and understand that TypeScript checks code before JavaScript runs. These three options solve different problems:2 min readtsc from a terminal, and understand JSON configuration files. This chapter shows how to adopt strict checking without blocking all feature work at once.2 min readtsc from a terminal, and can read JSON configuration files. This chapter shows how to investigate a project when TypeScript appears to ignore an option or compile an unexpected file.2 min readinclude, outDir, and extends. This chapter focuses on repositories that contain several TypeScript packages, where one package imports another.2 min read