Skip to content

Commit 7d6b9ed

Browse files
authored
Merge pull request #257 from brettz9/no-undefined-types-function
enhancement(`no-undefined-types`): allow `function`
2 parents f846ddc + 24a4527 commit 7d6b9ed

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-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`, `object`
18+
- `null`, `undefined`, `string`, `boolean`, `object`, `function`
1919
- `number`, `NaN`, `Infinity`
2020
- `any`, `*`
2121
- `Array`, `Object`, `RegExp`, `Date`, `Function`

README.md

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

21072107
The following types are always considered defined.
21082108

2109-
- `null`, `undefined`, `string`, `boolean`, `object`
2109+
- `null`, `undefined`, `string`, `boolean`, `object`, `function`
21102110
- `number`, `NaN`, `Infinity`
21112111
- `any`, `*`
21122112
- `Array`, `Object`, `RegExp`, `Date`, `Function`

src/rules/noUndefinedTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import iterateJsdoc, {parseComment} from '../iterateJsdoc';
44

55
const extraTypes = [
66
'null', 'undefined', 'string', 'boolean', 'object',
7+
'function',
78
'number', 'NaN', 'Infinity',
89
'any', '*',
910
'Array', 'Object', 'RegExp', 'Date', 'Function'

0 commit comments

Comments
 (0)