mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
fix(51112): omit parameter names that precede the type (#51142)
This commit is contained in:
@@ -40136,7 +40136,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
else {
|
||||
forEach(jsdocParameters, ({ name }, index) => {
|
||||
forEach(jsdocParameters, ({ name, isNameFirst }, index) => {
|
||||
if (excludedParameters.has(index) || isIdentifier(name) && parameters.has(name.escapedText)) {
|
||||
return;
|
||||
}
|
||||
@@ -40146,7 +40146,9 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
else {
|
||||
errorOrSuggestion(isJs, name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, idText(name));
|
||||
if (!isNameFirst) {
|
||||
errorOrSuggestion(isJs, name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, idText(name));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user