Intro to the TSConfig Reference
A TSConfig file in a directory indicates that the directory is the root of a TypeScript or JavaScript project. The TSConfig file can be either a tsconfig.json or jsconfig.json, both have the same set of config variables.
This page covers all of the different options available inside a TSConfig file. There are over 100 options, and this page is not built to be read from top to bottom. Instead it has five main sections:
- A categorized overview of all compiler flags
- The root fields for letting TypeScript know what files are available
- The
compilerOptionsfields, this is the majority of the document - The
watchOptionsfields, for tweaking the watch mode - The
typeAcquisitionfields, for tweaking how types are added to JavaScript projects
If you are starting a TSConfig from scratch, you may want to consider using tsc --init to bootstrap or use a TSConfig base.