File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2343,7 +2343,7 @@ namespace ts {
2343
2343
export function getTypeParameterFromJsDoc ( node : TypeParameterDeclaration & { parent : JSDocTemplateTag } ) : TypeParameterDeclaration | undefined {
2344
2344
const name = node . name . escapedText ;
2345
2345
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 ) ;
2347
2347
}
2348
2348
2349
2349
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