From 52465df88a7f2519715221e7e1b6cb44bfe35798 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sat, 12 May 2018 19:20:11 +0200 Subject: [PATCH] Also add object properties and non-object typedefs --- config/jsdoc/api/plugins/api.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/jsdoc/api/plugins/api.js b/config/jsdoc/api/plugins/api.js index 56635004df..eab6a0bf94 100644 --- a/config/jsdoc/api/plugins/api.js +++ b/config/jsdoc/api/plugins/api.js @@ -82,6 +82,9 @@ function includeTypes(doclet) { if (doclet.returns) { doclet.returns.forEach(extractTypes); } + if (doclet.properties) { + doclet.properties.forEach(extractTypes); + } if (doclet.type && doclet.meta.code.type == 'MemberExpression') { extractTypes(doclet); } @@ -131,7 +134,7 @@ exports.handlers = { // Document all modules that are referenced by the API continue; } - if (doclet.isEnum) { + if (doclet.isEnum || doclet.kind == 'typedef') { continue; } if (doclet.kind == 'class' && api.some(hasApiMembers, doclet)) {