Skip to content

Commit 3a7396e

Browse files
committed
For optionality, check question token before JSDoc
1 parent 553d727 commit 3a7396e

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
@@ -4417,7 +4417,7 @@ namespace ts {
44174417
}
44184418

44194419
function isOptionalParameter(node: ParameterDeclaration) {
4420-
if (isJSDocOptionalParameter(node) || hasQuestionToken(node)) {
4420+
if (hasQuestionToken(node) || isJSDocOptionalParameter(node)) {
44214421
return true;
44224422
}
44234423

0 commit comments

Comments
 (0)