File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -13128,10 +13128,8 @@ namespace ts {
13128
13128
const targetCount = getParameterCount(target);
13129
13129
const sourceRestType = getEffectiveRestType(source);
13130
13130
const targetRestType = getEffectiveRestType(target);
13131
- const paramCount = targetRestType ? Math.min(targetCount - 1, sourceCount) :
13132
- sourceRestType ? targetCount :
13133
- Math.min(sourceCount, targetCount);
13134
-
13131
+ const targetNonRestCount = targetRestType ? targetCount - 1 : targetCount;
13132
+ const paramCount = sourceRestType ? targetNonRestCount : Math.min(sourceCount, targetNonRestCount);
13135
13133
const sourceThisType = getThisTypeOfSignature(source);
13136
13134
if (sourceThisType) {
13137
13135
const targetThisType = getThisTypeOfSignature(target);
You can’t perform that action at this time.
0 commit comments