mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix issue
This commit is contained in:
1 parent
77bb4f89c0
commit
3f5f8d7bd6
1 file changed
+1
-1
@@ -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 ||
|
||||
|
||||
Reference in new issue
Block a user