Skip to content

Commit

Permalink
undo unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabritto committed Feb 15, 2022
1 parent 75cb739 commit 4a7de63
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/compiler/checker.ts
Expand Up @@ -26061,14 +26061,12 @@ namespace ts {
links.resolvedSignature = cached;
return type;
}

const contextualSignature = getContextualSignature(func);
if (contextualSignature) {
const signature = contextualSignature;
const index = func.parameters.indexOf(parameter) - (getThisParameter(func) ? 1 : 0);
return parameter.dotDotDotToken && lastOrUndefined(func.parameters) === parameter ?
getRestTypeAtPosition(signature, index) :
tryGetTypeAtPosition(signature, index);
getRestTypeAtPosition(contextualSignature, index) :
tryGetTypeAtPosition(contextualSignature, index);
}
}

Expand Down

0 comments on commit 4a7de63

Please sign in to comment.