We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 096b2b0 commit 737859eCopy full SHA for 737859e
src/compiler/checker.ts
@@ -6720,8 +6720,8 @@ namespace ts {
6720
// Record a new minimum argument count if this is not an optional parameter
6721
const isOptionalParameter = param.initializer || param.questionToken || param.dotDotDotToken ||
6722
iife && parameters.length > iife.arguments.length && !param.type ||
6723
- isJSDocOptionalParameter(param) ||
6724
- isUntypedSignatureInJSFile;
+ isUntypedSignatureInJSFile ||
+ isJSDocOptionalParameter(param);
6725
if (!isOptionalParameter) {
6726
minArgumentCount = parameters.length;
6727
}
0 commit comments