Skip to content

Commit

Permalink
Fixed nonNullable calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
neogeek committed Sep 2, 2022
1 parent 9be1bad commit fbf0d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dox.js
Expand Up @@ -445,7 +445,7 @@ exports.parseTagTypes = function(str, tag) {
tag.typesDescription = publish(result, customPublisher).replace(/^\?|=$/, '');
tag.optional = (tag.name && tag.name.slice(0,1) === '[') || result.type === NodeType.OPTIONAL;
tag.nullable = result.type === NodeType.NULLABLE;
tag.nonNullable = result.meta ? result.meta.syntax === 'SUFFIX_QUESTION_MARK' : false;
tag.nonNullable = result.meta ? result.meta.syntax === 'SUFFIX_QUESTION_MARK' || result.meta.syntax === 'PREFIX_BANG': false;
tag.variable = result.type === NodeType.VARIADIC;
}

Expand Down

0 comments on commit fbf0d68

Please sign in to comment.