More closely match previous behavior
This commit is contained in:
parent
86f09ae87c
commit
d45806a984
|
@ -24122,7 +24122,7 @@ namespace ts {
|
|||
}
|
||||
|
||||
function isGenericTypeWithUnionConstraint(type: Type) {
|
||||
return !!(type.flags & TypeFlags.Instantiable && getBaseConstraintOrType(type).flags & TypeFlags.Union);
|
||||
return !!(type.flags & TypeFlags.Instantiable && getBaseConstraintOrType(type).flags & (TypeFlags.Nullable | TypeFlags.Union));
|
||||
}
|
||||
|
||||
function containsGenericType(type: Type): boolean {
|
||||
|
|
Loading…
Reference in a new issue