Handle types in arrays etc.

This commit is contained in:
Andreas Hocevar committed 2016-06-04 00:27:25 +02:00
1 parent 9e980663ee
commit 0dca194525
1 file changed
+4 -2
+4 -2
View File
@@ -78,8 +78,10 @@ function includeAugments(doclet) {
function extractTypes(item) {
item.type.names.forEach(function(type) {
types[type] = true;
//TODO handle Array.<type> etc.
var match = type.match(/^(.*<)?([^>]*)>?$/);
if (match) {
types[match[2]] = true;
}
});
}