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 c4c9a00 commit bb28444Copy full SHA for bb28444
src/compiler/checker.ts
@@ -8781,7 +8781,7 @@ namespace ts {
8781
}
8782
8783
function isMappableType(type: Type) {
8784
- return type.flags & (TypeFlags.Any | TypeFlags.TypeParameter | TypeFlags.Object | TypeFlags.Intersection | TypeFlags.IndexedAccess);
+ return type.flags & (TypeFlags.Any | TypeFlags.InstantiableNonPrimitive | TypeFlags.Object | TypeFlags.Intersection);
8785
8786
8787
function instantiateAnonymousType(type: AnonymousType, mapper: TypeMapper): AnonymousType {
0 commit comments