Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptverbatimModuleSyntax isolatedModulesSingle-choice MCQ

A value class is imported but used only in a type position. Under what condition does `verbatimModuleSyntax` accept this without an inline `type` modifier, and what does the compiler emit?

// dep.ts: export class Foo {} import { Foo } from "./dep"; let x: Foo;