Handle types in arrays etc.

This commit is contained in:
Andreas Hocevar
2016-06-04 00:27:25 +02:00
parent 9e980663ee
commit 0dca194525

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;
}
});
}