diff --git a/.README/rules/no-undefined-types.md b/.README/rules/no-undefined-types.md index aea8bcea0..3f6143453 100644 --- a/.README/rules/no-undefined-types.md +++ b/.README/rules/no-undefined-types.md @@ -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` diff --git a/README.md b/README.md index 4bcd5692e..09217181b 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/src/rules/noUndefinedTypes.js b/src/rules/noUndefinedTypes.js index aa5328e94..3424021c8 100644 --- a/src/rules/noUndefinedTypes.js +++ b/src/rules/noUndefinedTypes.js @@ -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', '*',