Also add object properties and non-object typedefs
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user