Skip to content

Commit 4a7de63

Browse files
committed
undo unnecessary changes
1 parent 75cb739 commit 4a7de63

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/compiler/checker.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -26061,14 +26061,12 @@ namespace ts {
2606126061
links.resolvedSignature = cached;
2606226062
return type;
2606326063
}
26064-
2606526064
const contextualSignature = getContextualSignature(func);
2606626065
if (contextualSignature) {
26067-
const signature = contextualSignature;
2606826066
const index = func.parameters.indexOf(parameter) - (getThisParameter(func) ? 1 : 0);
2606926067
return parameter.dotDotDotToken && lastOrUndefined(func.parameters) === parameter ?
26070-
getRestTypeAtPosition(signature, index) :
26071-
tryGetTypeAtPosition(signature, index);
26068+
getRestTypeAtPosition(contextualSignature, index) :
26069+
tryGetTypeAtPosition(contextualSignature, index);
2607226070
}
2607326071
}
2607426072

0 commit comments

Comments
 (0)