Skip to content

Commit 1685618

Browse files
committed
Add reflection for decorated options without type.
1 parent b0c8c3f commit 1685618

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

jsdoc/plugins/highcharts.jsdoc.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ function decorateOptions(parent, target, option, filename) {
145145
comment &&
146146
(
147147
comment.indexOf('@ignore') !== -1 ||
148-
comment.indexOf('@apioption') !== -1 // has manual decoration
148+
(
149+
// has manual decoration
150+
comment.indexOf('@apioption') !== -1 &&
151+
comment.indexOf('@type') !== -1
152+
)
149153
)
150154
) {
151155
return;
@@ -159,7 +163,7 @@ function decorateOptions(parent, target, option, filename) {
159163

160164
target[index] = target[index] || {
161165
doclet: {},
162-
// type: option.key.type,
166+
// type: option.key.type,
163167
children: {}
164168
};
165169

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@highcharts/highcharts-documentation-generators",
4-
"version": "0.5.30",
4+
"version": "0.5.31",
55
"author": "Highsoft AS",
66
"license": "UNLICENSED",
77
"bugs": {

0 commit comments

Comments
 (0)