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

Under `--strict` (including `noImplicitAny`), why does this mapped/indexed read produce an error?

interface Dict { [key: string]: number; } const d: Dict = {}; const sym = Symbol("id"); const v = d[sym];