Also add object properties and non-object typedefs

This commit is contained in:
ahocevar
2018-05-12 19:20:11 +02:00
parent 6cd6e3cc83
commit 52465df88a

View File

@@ -82,6 +82,9 @@ function includeTypes(doclet) {
if (doclet.returns) { if (doclet.returns) {
doclet.returns.forEach(extractTypes); doclet.returns.forEach(extractTypes);
} }
if (doclet.properties) {
doclet.properties.forEach(extractTypes);
}
if (doclet.type && doclet.meta.code.type == 'MemberExpression') { if (doclet.type && doclet.meta.code.type == 'MemberExpression') {
extractTypes(doclet); extractTypes(doclet);
} }
@@ -131,7 +134,7 @@ exports.handlers = {
// Document all modules that are referenced by the API // Document all modules that are referenced by the API
continue; continue;
} }
if (doclet.isEnum) { if (doclet.isEnum || doclet.kind == 'typedef') {
continue; continue;
} }
if (doclet.kind == 'class' && api.some(hasApiMembers, doclet)) { if (doclet.kind == 'class' && api.some(hasApiMembers, doclet)) {