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

Under `verbatimModuleSyntax: true`, this file is compiled to CommonJS. What does the compiler emit, and why?

import { type Foo, bar } from "./mod"; console.log(bar);