Skip to content

Commit e411a32

Browse files
committed
Fix: es6 constructor docs generation (fixes #33)
1 parent de6a3f7 commit e411a32

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
tmp
22
out
3+
node_modules
4+
npm-debug.log

lib/transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function createConstructor (class_) {
133133
replacements.push(class_)
134134

135135
/* only output a constructor if it's documentated */
136-
if (constructor.description || (constructor.params && constructor.params.length)) {
136+
if (constructor.description || (constructor.params && constructor.params.length) || constructor.examples) {
137137
constructor.id = class_.id
138138
constructor.longname = class_.longname
139139
constructor.name = class_.codeName || class_.name

0 commit comments

Comments
 (0)