mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-25 22:01:51 -05:00
No subtype reduction in includeFalsyTypes
It's not really needed and caused #13826.
This commit is contained in:
@@ -8540,7 +8540,7 @@ namespace ts {
|
||||
if (flags & TypeFlags.Void) types.push(voidType);
|
||||
if (flags & TypeFlags.Undefined) types.push(undefinedType);
|
||||
if (flags & TypeFlags.Null) types.push(nullType);
|
||||
return getUnionType(types, /*subtypeReduction*/ true);
|
||||
return getUnionType(types);
|
||||
}
|
||||
|
||||
function removeDefinitelyFalsyTypes(type: Type): Type {
|
||||
|
||||
Reference in New Issue
Block a user