Skip to Content
TypeScript Intermediate: Types That Survive Real Projects
Intermediate
0 likes
Courses
TypeScript Intermediate: Types That Survive Real Projects

Check Yourself: Classes and Modules in TypeScript

Five scenario questions on access modifiers, hash fields, import type and circular imports. If you miss more than one, reread the lessons in this section.

Course content

Sign in to save your progress.

Course Home
4. Two files each import a constant from the other, and the first one reads it while loading. tsc reports no error, but running the program ends with a ReferenceError about accessing a name before initialization. What is the cleanest fix?
5. With verbatimModuleSyntax turned on, a file imports an Order that is only a type, using a plain named import. The compiler reports an error. What do you write instead?

About

Five scenario questions on access modifiers, hash fields, import type and circular imports. If you miss more than one, reread the lessons in this section.

Duration
5 min
Last update
10/13/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.