File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -14952,12 +14952,6 @@ namespace ts {
14952
14952
includes & TypeFlags.IncludesWildcard ? wildcardType : anyType :
14953
14953
includes & TypeFlags.Null || containsType(typeSet, unknownType) ? unknownType : nonNullUnknownType;
14954
14954
}
14955
- if (includes & TypeFlags.Undefined) {
14956
- const missingIndex = binarySearch(typeSet, missingType, getTypeId, compareValues);
14957
- if (missingIndex >= 0 && containsType(typeSet, undefinedType)) {
14958
- orderedRemoveItemAt(typeSet, missingIndex);
14959
- }
14960
- }
14961
14955
if (includes & (TypeFlags.Literal | TypeFlags.UniqueESSymbol | TypeFlags.TemplateLiteral | TypeFlags.StringMapping) || includes & TypeFlags.Void && includes & TypeFlags.Undefined) {
14962
14956
removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & UnionReduction.Subtype));
14963
14957
}
You can’t perform that action at this time.
0 commit comments