Skip to content

Commit

Permalink
fix(core): expose missing descriptions with accessor keyword (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Aug 15, 2024
1 parent 7afe341 commit 5be8459
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-experts-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'typedoc-plugin-markdown': patch
---

- Expose missing descriptions with accessor keyword (#664)
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function accessor(
);
}

if (model.comment?.blockTags?.length) {
if (model.comment) {
md.push(
this.partials.comment(model.comment, {
headingLevel: options.headingLevel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ export class ClassWithAccessorKeywords {
* const x = 1;
* ```
*/

public accessor accessor1: string;

/**
Expand All @@ -281,4 +280,9 @@ export class ClassWithAccessorKeywords {
* @remarks Remark comments
*/
public accessor accessor2: string;

/**
* Accessor comments
*/
public accessor accessor3: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,16 @@ Remark comments
#### Source
[classes.ts:1](http://source-url)
***
### accessor3
Accessor comments
#### Source
[classes.ts:1](http://source-url)
"
`;
Expand Down

0 comments on commit 5be8459

Please sign in to comment.