mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
For optionality, check question token before JSDoc
This commit is contained in:
parent
553d727148
commit
3a7396ea1c
@ -4417,7 +4417,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
function isOptionalParameter(node: ParameterDeclaration) {
|
||||
if (isJSDocOptionalParameter(node) || hasQuestionToken(node)) {
|
||||
if (hasQuestionToken(node) || isJSDocOptionalParameter(node)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user