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 86f09ae commit d45806aCopy full SHA for d45806a
src/compiler/checker.ts
@@ -24122,7 +24122,7 @@ namespace ts {
24122
}
24123
24124
function isGenericTypeWithUnionConstraint(type: Type) {
24125
- return !!(type.flags & TypeFlags.Instantiable && getBaseConstraintOrType(type).flags & TypeFlags.Union);
+ return !!(type.flags & TypeFlags.Instantiable && getBaseConstraintOrType(type).flags & (TypeFlags.Nullable | TypeFlags.Union));
24126
24127
24128
function containsGenericType(type: Type): boolean {
0 commit comments