Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptcompiler-performance blowupsSingle-choice MCQ

Why does replacing a large explicit return-type annotation on an exported function with inferred return types often make `tsc` and editor `--build` slower for *consumers*, the opposite of the usual advice?

// Without annotation, the exported API surface must be inferred: export function makeStore() { return { /* large object literal with many nested methods */ }; }