Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptgeneric constraintsSingle-choice MCQ

Why does this line fail to compile?

interface Box<T extends object = {}> { value: T; } const b: Box<number> = { value: 1 };