Chapter quiz · Real-World TypeScript

Test what you learned.

8 questions on Real-World TypeScript. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

TS Real-World — Chapter Quiz

Eight questions on tsconfig, modules, declaration files, React/Node, and migration.

0/ 9
  1. Question 1
    1

    What does strict: true in tsconfig.json do?

  2. Question 2
    2

    What kind of file is .d.ts?

  3. Question 3
    3

    TypeScript types are erased at compile time and cannot validate runtime input.

  4. Question 4
    4

    What is the modern import syntax for type-only imports?

  5. Question 5
    5

    The library ___ pairs a runtime schema with a TS-inferred type, perfect for system-boundary validation.

  6. Question 6
    6

    In React + TS, what does useRef<HTMLInputElement>(null) return?

  7. Question 7
    7

    What's the recommended way to migrate a large JS codebase to TS?

  8. Question 8
    8

    Which of these belong in a tsconfig.json for a modern bundler-based project?

    Select all that apply.

Pick an answer — instant feedback as you go.