Fix check for function type (allow checked type to have overloads)

This commit is contained in:
Anders Hejlsberg committed 2019-03-07 07:06:48 -08:00
1 parent b34fe67ac5
commit a9e924b6f0
1 file changed
+1 -1
+1 -1
View File
@@ -20925,7 +20925,7 @@ namespace ts {
}
function isGenericFunctionReturningFunction(signature: Signature) {
return !!(signature.typeParameters && getSingleCallSignature(getReturnTypeOfSignature(signature)));
return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature)));
}
/**