Skip to content

Commit bb7c1ba

Browse files
committed
fix(no-undefined-types): add "object" (as with "Object") to defined types fixes #249
1 parent e330dfc commit bb7c1ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.README/rules/no-undefined-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the tag types in the table below:
1515

1616
The following types are always considered defined.
1717

18-
- `null`, `undefined`, `string`, `boolean`
18+
- `null`, `undefined`, `string`, `boolean`, `object`
1919
- `number`, `NaN`, `Infinity`
2020
- `any`, `*`
2121
- `Array`, `Object`, `RegExp`, `Date`, `Function`

src/rules/noUndefinedTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {parse as parseType, traverse} from 'jsdoctypeparser';
33
import iterateJsdoc, {parseComment} from '../iterateJsdoc';
44

55
const extraTypes = [
6-
'null', 'undefined', 'string', 'boolean',
6+
'null', 'undefined', 'string', 'boolean', 'object',
77
'number', 'NaN', 'Infinity',
88
'any', '*',
99
'Array', 'Object', 'RegExp', 'Date', 'Function'

0 commit comments

Comments
 (0)