File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2343,7 +2343,7 @@ namespace ts {
23432343 export function getTypeParameterFromJsDoc ( node : TypeParameterDeclaration & { parent : JSDocTemplateTag } ) : TypeParameterDeclaration | undefined {
23442344 const name = node . name . escapedText ;
23452345 const { typeParameters } = ( node . parent . parent . parent as SignatureDeclaration | InterfaceDeclaration | ClassDeclaration ) ;
2346- return find ( typeParameters ! , p => p . name . escapedText === name ) ;
2346+ return typeParameters && find ( typeParameters , p => p . name . escapedText === name ) ;
23472347 }
23482348
23492349 export function hasRestParameter ( s : SignatureDeclaration | JSDocSignature ) : boolean {
Original file line number Diff line number Diff line change 1+ ///<reference path="fourslash.ts" />
2+ //// /**
3+ //// * @template {string} K/**/ a golden opportunity
4+ //// */
5+ //// function Multimap(iv) {
6+ //// };
7+
8+
9+ goTo . marker ( '' ) ;
10+ verify . quickInfoIs ( "any" ) ;
You can’t perform that action at this time.
0 commit comments