Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptESM CJS interopSingle-choice MCQ

Both `esModuleInterop` and `allowSyntheticDefaultImports` let you write `import f from "cm"` against a module typed with `export = f`. What is the key behavioral difference between them?

// node_modules/cm/index.d.ts declare function f(): number; export = f; // consumer.ts import f from "cm";