Skip to content

Commit d905ced

Browse files
committed
Add missing getApparentType call
1 parent 53320f5 commit d905ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9693,7 +9693,7 @@ namespace ts {
96939693
const indexTypes: Type[] = [];
96949694
let isAnyReadonly = false;
96959695
for (const type of types) {
9696-
const indexInfo = getIndexInfoOfType(type, kind);
9696+
const indexInfo = getIndexInfoOfType(getApparentType(type), kind);
96979697
if (!indexInfo) {
96989698
return undefined;
96999699
}

0 commit comments

Comments
 (0)