Add default exported enums to apidoc
This commit is contained in:
@@ -157,6 +157,7 @@ exports.handlers = {
|
|||||||
|
|
||||||
parseComplete: function(e) {
|
parseComplete: function(e) {
|
||||||
const doclets = e.doclets;
|
const doclets = e.doclets;
|
||||||
|
const byLongname = doclets.index.longname;
|
||||||
for (let i = doclets.length - 1; i >= 0; --i) {
|
for (let i = doclets.length - 1; i >= 0; --i) {
|
||||||
const doclet = doclets[i];
|
const doclet = doclets[i];
|
||||||
if (doclet.stability) {
|
if (doclet.stability) {
|
||||||
@@ -181,7 +182,8 @@ exports.handlers = {
|
|||||||
doclet._hideConstructor = true;
|
doclet._hideConstructor = true;
|
||||||
includeAugments(doclet);
|
includeAugments(doclet);
|
||||||
sortOtherMembers(doclet);
|
sortOtherMembers(doclet);
|
||||||
} else if (!doclet._hideConstructor) {
|
} else if (!doclet._hideConstructor
|
||||||
|
&& !(doclet.longname in defaultExports && byLongname[doclet.longname].some(d => d.isEnum))) {
|
||||||
// Remove all other undocumented symbols
|
// Remove all other undocumented symbols
|
||||||
doclet.undocumented = true;
|
doclet.undocumented = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user