Skip to content

Commit d0b0a82

Browse files
committed
fix(parser): handle comments with just tags
1 parent 30f56ec commit d0b0a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/parser.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export function parseFromProgram(
418418
const comments = ts.getJSDocCommentsAndTags(decl[0]) as any[];
419419
if (comments && comments.length === 1) {
420420
const commentNode = comments[0];
421-
if (ts.isJSDoc(commentNode) && commentNode.comment && commentNode.tags) {
421+
if (ts.isJSDoc(commentNode)) {
422422
return (
423423
commentNode
424424
// Full comment text

0 commit comments

Comments
 (0)