Compiler options, strict mode, paths, and project references — configure TypeScript for your project.
Five passes over the same idea, each from a different angle. Do them in order, or jump to whichever you need.
tsconfig.json controls the TypeScript compiler. Key options: strict mode (strictNullChecks, noImplicitAny), target/module, paths/baseUrl for aliases, project references for monorepos, and incremental builds. Understanding compilerOptions is essential for any TypeScript project.