Skip to content

Commit

Permalink
docs(no-undefined-types): add "symbol" and "bigint" to list (alread…
Browse files Browse the repository at this point in the history
…y supported)
  • Loading branch information
brettz9 committed Jan 18, 2020
1 parent 71c6085 commit e7c3627
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .README/rules/no-undefined-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ The following tags will also be checked but only when the mode is `closure`:

The following types are always considered defined.

- `null`, `undefined`, `void`, `string`, `boolean`, `object`, `function`
- `number`, `NaN`, `Infinity`
- `null`, `undefined`, `void`, `string`, `boolean`, `object`,
`function`, `symbol`
- `number`, `bigint`, `NaN`, `Infinity`
- `any`, `*`
- `Array`, `Object`, `RegExp`, `Date`, `Function`

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5351,8 +5351,9 @@ The following tags will also be checked but only when the mode is `closure`:
The following types are always considered defined.
- `null`, `undefined`, `void`, `string`, `boolean`, `object`, `function`
- `number`, `NaN`, `Infinity`
- `null`, `undefined`, `void`, `string`, `boolean`, `object`,
`function`, `symbol`
- `number`, `bigint`, `NaN`, `Infinity`
- `any`, `*`
- `Array`, `Object`, `RegExp`, `Date`, `Function`
Expand Down
4 changes: 2 additions & 2 deletions src/rules/noUndefinedTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import iterateJsdoc, {parseComment} from '../iterateJsdoc';
import jsdocUtils from '../jsdocUtils';

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

0 comments on commit e7c3627

Please sign in to comment.