8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f071d30 commit 3652682Copy full SHA for 3652682
src/compiler/checker.ts
@@ -15166,7 +15166,7 @@ namespace ts {
15166
return includes & TypeFlags.IncludesWildcard ? wildcardType : anyType;
15167
}
15168
if (!strictNullChecks && includes & TypeFlags.Nullable) {
15169
- return includes & TypeFlags.Undefined ? undefinedType : nullType;
+ return includes & TypeFlags.IncludesEmptyObject ? neverType : includes & TypeFlags.Undefined ? undefinedType : nullType;
15170
15171
if (includes & TypeFlags.String && includes & (TypeFlags.StringLiteral | TypeFlags.TemplateLiteral | TypeFlags.StringMapping) ||
15172
includes & TypeFlags.Number && includes & TypeFlags.NumberLiteral ||
0 commit comments