Skip to content

Commit e6776b3

Browse files
committed
chore(docs/source/api): re-add "null" to types when nullable
1 parent 906cb4f commit e6776b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/api.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ function parse() {
179179
case 'event':
180180
case 'param':
181181
ctx[tag.type] = (ctx[tag.type] || []);
182+
// the following is required, because in newer "dox" version "null" is not included in "types" anymore, but a seperate property
183+
if (tag.nullable) {
184+
tag.types.push('null');
185+
}
182186
if (tag.types) {
183187
tag.types = tag.types.join('|');
184188
}

0 commit comments

Comments
 (0)