AI Hints
Home›TypeScript Tutorial›Overloads and Events
TypeScript · Lesson 87 of 120

Tooling Quiz

Test yourself.

⏱ 2 min read▶ Video at 1:07:41🎓 Free
Watch this lesson in the TypeScript courseWatch on YouTube ↗Full TypeScript course

Let's review modules, tooling, and async. Pause after each question, and answer before I do.

Tooling Quiz
From the video: Tooling Quiz
  • Tooling quiz
  • Pause and think
  • Then check

Question 1

Which setting turns on all the safety checks? Strict.

Quick check
All the safety checks:

Question 2

What type is a caught error in strict mode? Unknown.

Quick check
catch (e) gives e the type:

Question 3

What does z dot infer give you? A type from a Zod schema.

Quick check
z.infer<typeof Schema> is:

Question 4

What file describes JavaScript code with types only? A declaration file.

Quick check
Types only, no code:

Summary

Well done. Next, a new section on patterns, starting with satisfies.

Key takeaways
  • strict
  • unknown
  • z.infer
Next up: satisfies — check without widening