We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9658b47 commit 5288c37Copy full SHA for 5288c37
src/compiler/checker.ts
@@ -20132,10 +20132,7 @@ namespace ts {
20132
if (pos - paramCount < getLengthOfTupleType(restType)) {
20133
return restType.typeArguments![pos - paramCount];
20134
}
20135
- const tupleRestType = getRestTypeOfTupleType(restType);
20136
- if (tupleRestType) {
20137
- return tupleRestType;
20138
- }
+ return getRestTypeOfTupleType(restType);
20139
20140
return getIndexTypeOfType(restType, IndexKind.Number);
20141
0 commit comments