Skip to content
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here
Your logo here

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 compilerOptions fields, this is the majority of the document
  • The watchOptions fields, for tweaking the watch mode
  • The typeAcquisition fields, 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.