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

With `"verbatimModuleSyntax": true`, why does the import below cause an error even though `User` is used only in a type position?

import { User, createUser } from "./users"; const u: User = createUser();