Skip to content

Commit

Permalink
fix(core): fix missing return comments for const functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Jul 24, 2024
1 parent 967c584 commit b95b7f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-squids-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'typedoc-plugin-markdown': patch
---

- Fix missing return comments for const functions (#656)
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ export function signature(
});
}
if (modelComments && model.parent?.comment?.blockTags) {
modelComments = Object.assign(modelComments, {
blockTags: model.parent.comment.blockTags,
});
modelComments.blockTags = [
...(model.parent?.comment?.blockTags || []),
...(model.comment?.blockTags || []),
];
}

if (modelComments) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ constFunctionWithReturns comments
\`boolean\`
Return comments
## Remarks
Some remarks
Expand Down

0 comments on commit b95b7f4

Please sign in to comment.