Engrain by ByteRush

TS.01.02 JuniorCore — asked often

tsconfig and the strict family

Comes up in: Recruiter screen

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • strict and what it enables (strictNullChecks, noImplicitAny, strictFunctionTypes, strictBindCallApply, useUnknownInCatchVariables…)
  • noUncheckedIndexedAccess
  • exactOptionalPropertyTypes
  • target, module, moduleResolution: bundler/nodenext
  • verbatimModuleSyntax, isolatedModules
  • TS 7 defaults (strict on) — fact

Words you will know

tsconfigstrict mode (TS)module resolution

What you will practise

  • turn on strict in a JS-ish project and fix the errors

Interview questions this answers

  • What does strict: true turn on?
  • What does noUncheckedIndexedAccess change?