Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumTypeScriptindex signaturesSingle-choice MCQ

Given this interface, which member declaration added alongside the index signature would cause a compile error?

interface Dictionary { [key: string]: number; // add ONE of the options here }