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

Under `isolatedModules: true`, why does re-exporting an imported name without `type` error, and what makes this specifically a single-file-transpiler problem?

// thing.ts: export type Thing = { a: number }; export const val = 1; import { Thing, val } from "./thing"; export { Thing, val };