Tsallaka zuwa abun ciki
Justice Tech School

tsconfig.json

tsconfig.json configures the compiler. Important options: target, module, strict, outDir, rootDir and esModuleInterop. Always enable strict for the full safety.

Example
// tsconfig.json
// {
//   "compilerOptions": {
//     "target": "ES2022",
//     "module": "ESNext",
//     "strict": true,
//     "outDir": "dist"
//   },
//   "include": ["src"]
// }
console.log("tsc --init creates a starter file");

Result

tsc --init creates a starter file

Exercise

Create a starter config.

tsc 

Quiz Test

Which option enables all strict checks?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.