fix(41827): allow infer parameters from method signature usage (#41836)

This commit is contained in:
Oleksandr T
2020-12-08 00:00:46 +02:00
committed by GitHub
parent 71e881a7ee
commit 0fa41db6c6
2 changed files with 53 additions and 0 deletions

View File

@@ -453,6 +453,7 @@ namespace ts.codefix {
break;
case SyntaxKind.FunctionDeclaration:
case SyntaxKind.MethodDeclaration:
case SyntaxKind.MethodSignature:
searchToken = containingFunction.name;
break;
}