diff --git a/packages/typedoc-plugin-markdown/src/partials/member.signature.ts b/packages/typedoc-plugin-markdown/src/partials/member.signature.ts index 69fda3d76..d6d04bfa5 100644 --- a/packages/typedoc-plugin-markdown/src/partials/member.signature.ts +++ b/packages/typedoc-plugin-markdown/src/partials/member.signature.ts @@ -34,6 +34,13 @@ export function signatureMember( md.push(bold('Returns')); md.push(context.partials.someType(signature.type, 'all')); + if (signature.comment?.blockTags.length) { + const tags = signature.comment.blockTags + .filter((tag) => tag.tag === '@returns') + .map((tag) => context.partials.commentParts(tag.content)); + md.push(tags.join('\n\n')); + } + if (typeDeclaration?.signatures) { typeDeclaration.signatures.forEach((signature) => { md.push(context.partials.signatureMember(signature));