Skip to content

Commit

Permalink
Added @hideconstructor support. Fixes #94
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Sep 1, 2024
1 parent 63f777b commit f7b80bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers/ddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,12 @@ function _children (options) {
delete options.hash.min
options.hash.memberof = this.id
let output = _identifiers(options)
output = output.filter(function (identifier) {
output = output.filter(identifier => {
if (identifier.kind === 'external') {
return identifier.description && identifier.description.length > 0
/* @hideconstructor support: https://github.com/jsdoc2md/dmd/issues/94 */
} else if (this.hideconstructor === true) {
return identifier.kind !== 'constructor'
} else {
return true
}
Expand Down

0 comments on commit f7b80bc

Please sign in to comment.