Fix out-of-bounds issue in getParameterNameAtPosition
This commit is contained in:
parent
e383b0d4f7
commit
3afe0a4d43
1 changed files with 1 additions and 1 deletions
|
@ -21641,7 +21641,7 @@ namespace ts {
|
|||
if (isTupleType(restType)) {
|
||||
const associatedNames = (<TupleType>(<TypeReference>restType).target).associatedNames;
|
||||
const index = pos - paramCount;
|
||||
return associatedNames ? associatedNames[index] : restParameter.escapedName + "_" + index as __String;
|
||||
return associatedNames && associatedNames[index] || restParameter.escapedName + "_" + index as __String;
|
||||
}
|
||||
return restParameter.escapedName;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue