File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -372,8 +372,7 @@ namespace ts.SignatureHelp {
372
372
if ( isTypeParameterList ) {
373
373
isVariadic = false ; // type parameter lists are not variadic
374
374
prefixDisplayParts . push ( punctuationPart ( SyntaxKind . LessThanToken ) ) ;
375
- // Use `.mapper` to ensure we get the generic type arguments even if this is an instantiated version of the signature.
376
- const typeParameters = candidateSignature . typeParameters ; // !!! candidateSignature.mapper ? candidateSignature.mapper.mappedTypes : candidateSignature.typeParameters;
375
+ const typeParameters = ( candidateSignature . target || candidateSignature ) . typeParameters ;
377
376
signatureHelpParameters = typeParameters && typeParameters . length > 0 ? map ( typeParameters , createSignatureHelpParameterForTypeParameter ) : emptyArray ;
378
377
suffixDisplayParts . push ( punctuationPart ( SyntaxKind . GreaterThanToken ) ) ;
379
378
const parameterParts = mapToDisplayParts ( writer =>
You can’t perform that action at this time.
0 commit comments