mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
fix(41827): allow infer parameters from method signature usage (#41836)
This commit is contained in:
@@ -453,6 +453,7 @@ namespace ts.codefix {
|
||||
break;
|
||||
case SyntaxKind.FunctionDeclaration:
|
||||
case SyntaxKind.MethodDeclaration:
|
||||
case SyntaxKind.MethodSignature:
|
||||
searchToken = containingFunction.name;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user