Handle types in arrays etc.
This commit is contained in:
@@ -78,8 +78,10 @@ function includeAugments(doclet) {
|
|||||||
|
|
||||||
function extractTypes(item) {
|
function extractTypes(item) {
|
||||||
item.type.names.forEach(function(type) {
|
item.type.names.forEach(function(type) {
|
||||||
types[type] = true;
|
var match = type.match(/^(.*<)?([^>]*)>?$/);
|
||||||
//TODO handle Array.<type> etc.
|
if (match) {
|
||||||
|
types[match[2]] = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user