Skip to content

Commit

Permalink
fix(no-undefined-types): add void to allowable types; fixes #381
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Sep 14, 2019
1 parent 7b2caa9 commit ebf92c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .README/rules/no-undefined-types.md
Expand Up @@ -15,7 +15,7 @@ the tag types in the table below:

The following types are always considered defined.

- `null`, `undefined`, `string`, `boolean`, `object`, `function`
- `null`, `undefined`, `void`, `string`, `boolean`, `object`, `function`
- `number`, `NaN`, `Infinity`
- `any`, `*`
- `Array`, `Object`, `RegExp`, `Date`, `Function`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -3353,7 +3353,7 @@ the tag types in the table below:

The following types are always considered defined.

- `null`, `undefined`, `string`, `boolean`, `object`, `function`
- `null`, `undefined`, `void`, `string`, `boolean`, `object`, `function`
- `number`, `NaN`, `Infinity`
- `any`, `*`
- `Array`, `Object`, `RegExp`, `Date`, `Function`
Expand Down
2 changes: 1 addition & 1 deletion src/rules/noUndefinedTypes.js
Expand Up @@ -4,7 +4,7 @@ import iterateJsdoc, {parseComment} from '../iterateJsdoc';
import jsdocUtils from '../jsdocUtils';

const extraTypes = [
'null', 'undefined', 'string', 'symbol', 'boolean', 'object',
'null', 'undefined', 'void', 'string', 'symbol', 'boolean', 'object',
'function',
'number', 'bigint', 'NaN', 'Infinity',
'any', '*',
Expand Down

0 comments on commit ebf92c5

Please sign in to comment.