We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75cb739 commit 4a7de63Copy full SHA for 4a7de63
src/compiler/checker.ts
@@ -26061,14 +26061,12 @@ namespace ts {
26061
links.resolvedSignature = cached;
26062
return type;
26063
}
26064
-
26065
const contextualSignature = getContextualSignature(func);
26066
if (contextualSignature) {
26067
- const signature = contextualSignature;
26068
const index = func.parameters.indexOf(parameter) - (getThisParameter(func) ? 1 : 0);
26069
return parameter.dotDotDotToken && lastOrUndefined(func.parameters) === parameter ?
26070
- getRestTypeAtPosition(signature, index) :
26071
- tryGetTypeAtPosition(signature, index);
+ getRestTypeAtPosition(contextualSignature, index) :
+ tryGetTypeAtPosition(contextualSignature, index);
26072
26073
26074
0 commit comments