Ignore constraints of generic mapped types in definitelyAssignableRelation
This commit is contained in:
parent
93c76cb617
commit
056c87f289
|
@ -11778,6 +11778,9 @@ namespace ts {
|
|||
}
|
||||
return Ternary.False;
|
||||
}
|
||||
if (relation === definitelyAssignableRelation && isGenericMappedType(source)) {
|
||||
return Ternary.False;
|
||||
}
|
||||
const sourceIsPrimitive = !!(source.flags & TypeFlags.Primitive);
|
||||
if (relation !== identityRelation) {
|
||||
source = getApparentType(source);
|
||||
|
|
Loading…
Reference in a new issue