Skip to content

Commit 215a1fa

Browse files
committed
Added undefined and null to typesDescription.
1 parent 5a82d67 commit 215a1fa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/dox.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,15 @@ exports.parseTagTypes = function(str, tag) {
411411

412412
var customPublisher = Object.assign({}, createDefaultPublisher(), {
413413
NAME(nameNode) {
414-
return '<code>' + nameNode.name + '</code>';
414+
var output = '<code>' + nameNode.name + '</code>';
415+
416+
if (result.type === NodeType.OPTIONAL) {
417+
output += '|<code>undefined</code>';
418+
} else if (result.type === NodeType.NULLABLE) {
419+
output += '|<code>null</code>';
420+
}
421+
422+
return output;
415423
}
416424
});
417425

0 commit comments

Comments
 (0)