Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptexcess property checksSingle-choice MCQ

When the target type contains an index signature, the fresh-literal excess-property check behaves differently. What is the result?

interface Bag { [k: string]: number; required: number; } function take(b: Bag) {} take({ required: 1, anything: 2, more: 3 });