Fix issue
This commit is contained in:
parent
77bb4f89c0
commit
3f5f8d7bd6
|
@ -8610,7 +8610,7 @@ namespace ts {
|
|||
if (!strictNullChecks && includes & TypeFlags.Nullable) {
|
||||
return includes & TypeFlags.Undefined ? undefinedType : nullType;
|
||||
}
|
||||
if (types.length === 0) {
|
||||
if (typeSet.length === 0) {
|
||||
return includes & TypeFlags.TopUnion ? getTopType() : emptyObjectType;
|
||||
}
|
||||
if (includes & TypeFlags.String && includes & TypeFlags.StringLiteral ||
|
||||
|
|
Loading…
Reference in a new issue