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 4ad6541 commit a7b4635Copy full SHA for a7b4635
src/compiler/checker.ts
@@ -10619,7 +10619,7 @@ namespace ts {
10619
target.flags & TypeFlags.Union ? some((<UnionType>target).types, t => isTypeDerivedFrom(source, t)) :
10620
source.flags & TypeFlags.InstantiableNonPrimitive ? isTypeDerivedFrom(getBaseConstraintOfType(source) || emptyObjectType, target) :
10621
target === globalObjectType ? !!(source.flags & (TypeFlags.Object | TypeFlags.NonPrimitive)) :
10622
- target === globalFunctionType ? isFunctionObjectType(source as ObjectType) :
+ target === globalFunctionType ? !!(source.flags & TypeFlags.Object) && isFunctionObjectType(source as ObjectType) :
10623
hasBaseType(source, getTargetType(target));
10624
}
10625
0 commit comments