Skip to content

Commit 9272e79

Browse files
committed
Add getter for remove description field
Signed-off-by: worksofliam <[email protected]>
1 parent e850743 commit 9272e79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

language/models/declaration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ export default class Declaration {
3939
//clone.scope = this.scope;
4040
return clone;
4141
}
42+
43+
get description() {
44+
return this.tags.find(tag => tag.tag === `description`)?.content || ``;
45+
}
4246
}

0 commit comments

Comments
 (0)