Skip to content

Commit bb28444

Browse files
committed
Handle all instantiable non-primitive types in homomorphic mapped types
1 parent c4c9a00 commit bb28444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8781,7 +8781,7 @@ namespace ts {
87818781
}
87828782

87838783
function isMappableType(type: Type) {
8784-
return type.flags & (TypeFlags.Any | TypeFlags.TypeParameter | TypeFlags.Object | TypeFlags.Intersection | TypeFlags.IndexedAccess);
8784+
return type.flags & (TypeFlags.Any | TypeFlags.InstantiableNonPrimitive | TypeFlags.Object | TypeFlags.Intersection);
87858785
}
87868786

87878787
function instantiateAnonymousType(type: AnonymousType, mapper: TypeMapper): AnonymousType {

0 commit comments

Comments
 (0)