tsconfig.json in Depth
Prerequisites: Compiling TypeScript with tsc
A few of tsconfig.json's most commonly adjusted options:
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"strict": true,
"outDir": "./dist",
"rootDir": "./src"
}
}
target sets which JavaScript version is generated; strict
enables the full set of strict type-checking rules (covered next);
outDir/rootDir control where compiled output goes.