From 0dca194525da049c581fbe2bf403764b5805ab2b Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Sat, 4 Jun 2016 00:27:25 +0200 Subject: [PATCH] Handle types in arrays etc. --- config/jsdoc/api/plugins/api.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/jsdoc/api/plugins/api.js b/config/jsdoc/api/plugins/api.js index 0de3c3a89a..16a67593fe 100644 --- a/config/jsdoc/api/plugins/api.js +++ b/config/jsdoc/api/plugins/api.js @@ -78,8 +78,10 @@ function includeAugments(doclet) { function extractTypes(item) { item.type.names.forEach(function(type) { - types[type] = true; - //TODO handle Array. etc. + var match = type.match(/^(.*<)?([^>]*)>?$/); + if (match) { + types[match[2]] = true; + } }); }