Skip to main content
InterviewHubPRO
Section Overview
Q15

Question 15 of 50

Part 1: Basic & Foundational TypeScript (Junior / Entry-Level)

30%
TypeScript Master (50 Qs)•Part 1: Basic & Foundational TypeScript (Junior / Entry-Level)

What are the essential flags in `tsconfig.json`?

junior LevelTypeScript

In Simple Words:

  • "strict": true: Enables all strict type-checking options (the single most important flag).
  • "target": "ES2022": Target ECMAScript version for output JS.
  • "module": "NodeNext": Module system for code generation.
  • "noImplicitAny": true: Raises an error on any variable whose type defaults to any.
  • "strictNullChecks": true: Prevents assigning null or undefined to types unless explicitly declared in a union (string | null).
  • "noUncheckedIndexedAccess": true: Treats array indexing (arr[0]) as T | undefined instead of assuming the element exists.