We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed49594 commit c084d28Copy full SHA for c084d28
src/compiler/checker.ts
@@ -13605,6 +13605,9 @@ namespace ts {
13605
if (objectType === wildcardType || indexType === wildcardType) {
13606
return wildcardType;
13607
}
13608
+ if (objectType === erasedType || indexType === erasedType) {
13609
+ return erasedType;
13610
+ }
13611
// If the object type has a string index signature and no other members we know that the result will
13612
// always be the type of that index signature and we can simplify accordingly.
13613
if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & TypeFlags.Nullable) && isTypeAssignableToKind(indexType, TypeFlags.String | TypeFlags.Number)) {
0 commit comments