diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f24f8b93d1ab5..31d0132d1b18f 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -9693,7 +9693,7 @@ namespace ts { const indexTypes: Type[] = []; let isAnyReadonly = false; for (const type of types) { - const indexInfo = getIndexInfoOfType(type, kind); + const indexInfo = getIndexInfoOfType(getApparentType(type), kind); if (!indexInfo) { return undefined; }