Skip to content

Commit a9e924b

Browse files
committed
Fix check for function type (allow checked type to have overloads)
1 parent b34fe67 commit a9e924b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20925,7 +20925,7 @@ namespace ts {
2092520925
}
2092620926

2092720927
function isGenericFunctionReturningFunction(signature: Signature) {
20928-
return !!(signature.typeParameters && getSingleCallSignature(getReturnTypeOfSignature(signature)));
20928+
return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature)));
2092920929
}
2093020930

2093120931
/**

0 commit comments

Comments
 (0)