File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5777,7 +5777,7 @@ namespace ts {
5777
5777
for (const propertySymbol of getPropertiesOfType(modifiersType)) {
5778
5778
addMemberForKeyType(getLiteralTypeFromPropertyName(propertySymbol), propertySymbol);
5779
5779
}
5780
- if (getIndexInfoOfType(modifiersType, IndexKind.String)) {
5780
+ if (modifiersType.flags & TypeFlags.Any || getIndexInfoOfType(modifiersType, IndexKind.String)) {
5781
5781
addMemberForKeyType(stringType);
5782
5782
}
5783
5783
}
@@ -8386,7 +8386,7 @@ namespace ts {
8386
8386
}
8387
8387
8388
8388
function isMappableType(type: Type) {
8389
- return type.flags & (TypeFlags.TypeParameter | TypeFlags.Object | TypeFlags.Intersection | TypeFlags.IndexedAccess);
8389
+ return type.flags & (TypeFlags.Any | TypeFlags. TypeParameter | TypeFlags.Object | TypeFlags.Intersection | TypeFlags.IndexedAccess);
8390
8390
}
8391
8391
8392
8392
function instantiateAnonymousType(type: AnonymousType, mapper: TypeMapper): AnonymousType {
You can’t perform that action at this time.
0 commit comments