mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
feat(51163): show QF to fill in the missing properties for the mapped type. (#51165)
This commit is contained in:
@@ -178,7 +178,7 @@ namespace ts.codefix {
|
||||
const argIndex = findIndex(parent.parent.arguments, arg => arg === parent);
|
||||
if (argIndex < 0) return undefined;
|
||||
|
||||
const signature = singleOrUndefined(checker.getSignaturesOfType(checker.getTypeAtLocation(parent.parent.expression), SignatureKind.Call));
|
||||
const signature = checker.getResolvedSignature(parent.parent);
|
||||
if (!(signature && signature.declaration && signature.parameters[argIndex])) return undefined;
|
||||
|
||||
const param = signature.parameters[argIndex].valueDeclaration;
|
||||
|
||||
Reference in New Issue
Block a user