Skip to content

Commit 419ed11

Browse files
committed
fix: fix array types
1 parent 74abe59 commit 419ed11

File tree

3 files changed

+175
-93
lines changed

3 files changed

+175
-93
lines changed

lib/jsdoc/tag.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ function processTagText(tag, tagDef, meta) {
101101
// optional or defaultvalue, e.g. '@param [foo]'.
102102
// Although tagType.type.length == 0 we should still copy the other properties.
103103
if (tagType.type) {
104+
tagType.type = tagType.type.map(function(text) {
105+
return text.replace(/\[\s'([^']+)'\s\]\.</g, '$1<');
106+
});
104107
if (tagType.type.length) {
105108
tag.value.type = {
106109
names: tagType.type

package-lock.json

Lines changed: 170 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)