-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
jsdoc.cjs
47 lines (43 loc) · 1 KB
/
jsdoc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'use strict';
/* eslint-disable no-param-reassign */
exports.defineTags = (dictionary) => {
dictionary.defineTag('sig', {
mustHaveValue: true,
canHaveType: false,
canHaveName: false,
onTagged(doclet, tag) {
if (!Array.isArray(doclet.sig)) {
doclet.sig = [];
}
doclet.sig.push(tag.value);
},
});
dictionary.defineTag('typedef', {
mustHaveValue: true,
canHaveType: false,
canHaveName: false,
onTagged(doclet, tag) {
if (!Array.isArray(doclet.typedef)) {
doclet.typedef = [];
}
doclet.typedef.push(tag.value);
},
});
dictionary.defineTag('category', {
mustHaveValue: true,
canHaveType: false,
canHaveName: false,
onTagged(doclet, tag) {
doclet.category = tag.value;
},
});
dictionary.defineTag('aliases', {
mustHaveValue: true,
canHaveType: false,
canHaveName: false,
onTagged(doclet, tag) {
doclet.aliases = tag.value;
},
});
};
/* eslint-enable no-param-reassign */