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 {
3114
3114
}
3115
3115
3116
3116
export function getJSDocTypeParameterDeclarations ( node : DeclarationWithTypeParameters ) : ReadonlyArray < TypeParameterDeclaration > {
3117
- const tags = filter ( getJSDocTags ( node ) , isJSDocTemplateTag ) ;
3118
3117
// 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 ) ) ) ;
3120
3120
return ( tag && tag . typeParameters ) || emptyArray ;
3121
3121
}
3122
3122
You can’t perform that action at this time.
0 commit comments