We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7f614f commit d4624e6Copy full SHA for d4624e6
src/compiler/checker.ts
@@ -9974,7 +9974,7 @@ namespace ts {
9974
const declaration = getIndexDeclarationOfIndexSymbol(indexSymbol, indexKind);
9975
if (!declaration) return undefined;
9976
return createIndexInfo(declaration.type ? getTypeFromTypeNode(declaration.type) : anyType,
9977
- hasModifier(declaration, ModifierFlags.Readonly), declaration);
+ hasEffectiveModifier(declaration, ModifierFlags.Readonly), declaration);
9978
}
9979
9980
function resolveReverseMappedTypeMembers(type: ReverseMappedType) {
0 commit comments