Skip to content

Commit

Permalink
fix(valid-types): treat module, enum, member/var, and `type…
Browse files Browse the repository at this point in the history
…def` as having optional type; fixes #375
  • Loading branch information
brettz9 committed Sep 1, 2019
1 parent 4511325 commit 6c7a5de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jsdocUtils.js
Expand Up @@ -130,15 +130,15 @@ const hasDefinedTypeReturnTag = (tag) => {
};

const tagsWithMandatoryType = [
'enum',
'implements',
'member', 'var',
'module',
'type',
'typedef',
];

const tagsWithOptionalType = [
'enum',
'member', 'var',
'module',
'typedef',
'augments', 'extends',
'class', 'constructor',
'constant', 'const',
Expand Down

0 comments on commit 6c7a5de

Please sign in to comment.