File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3114,9 +3114,9 @@ namespace ts {
31143114 }
31153115
31163116 export function getJSDocTypeParameterDeclarations ( node : DeclarationWithTypeParameters ) : ReadonlyArray < TypeParameterDeclaration > {
3117- const tags = filter ( getJSDocTags ( node ) , isJSDocTemplateTag ) ;
31183117 // template tags are only available when a typedef isn't already using them
3119- const tag = find ( tags , tag => ! ( tag . parent . kind === SyntaxKind . JSDocComment && find ( tag . parent . tags , isJSDocTypeAlias ) ) ) ;
3118+ const tag = find ( getJSDocTags ( node ) , ( tag ) : tag is JSDocTemplateTag =>
3119+ isJSDocTemplateTag ( tag ) && ! ( tag . parent . kind === SyntaxKind . JSDocComment && tag . parent . tags ! . some ( isJSDocTypeAlias ) ) ) ;
31203120 return ( tag && tag . typeParameters ) || emptyArray ;
31213121 }
31223122
You can’t perform that action at this time.
0 commit comments