Add missing getApparentType call

This commit is contained in:
Anders Hejlsberg
2020-04-30 14:53:01 -07:00
parent 53320f59a4
commit d905cede25
+1 -1
View File
@@ -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;
}