mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix check for function type (allow checked type to have overloads)
This commit is contained in:
1 parent
b34fe67ac5
commit
a9e924b6f0
1 file changed
+1
-1
@@ -20925,7 +20925,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function isGenericFunctionReturningFunction(signature: Signature) {
|
||||
return !!(signature.typeParameters && getSingleCallSignature(getReturnTypeOfSignature(signature)));
|
||||
return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user