Skip to content

Commit f032448

Browse files
committed
Add PlainObject type definition
1 parent b79c0db commit f032448

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/docs/jsdoc/typedefs/objects.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
* @typedef {(Array|string|String|Object)} ArrayLike
55
*/
66

7+
/**
8+
* A plain object; i.e., either `{}` or an object created via `Object.create( null )`.
9+
*
10+
* @typedef {Object} PlainObject
11+
*/
12+
713
/**
814
* A value which is object-like. Basically, any value which is not `null` and, when operated on by `typeof`, returns `object`.
915
*
@@ -13,15 +19,15 @@
1319
/**
1420
* An object which is valid JSON.
1521
*
16-
* @typedef {Object} JSON
22+
* @typedef {PlainObject} JSON
1723
*
1824
* @see [JSON]{@link http://www.json.org/}
1925
*/
2026

2127
/**
2228
* An object containing function options.
2329
*
24-
* @typedef {Object} Options
30+
* @typedef {PlainObject} Options
2531
*/
2632

2733
/**

0 commit comments

Comments
 (0)