Skip to content

Commit 075b04f

Browse files
committed
os: fix cpus invalid return type jsdoc syntax
1 parent 7a53696 commit 075b04f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

lib/os.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ function loadavg() {
119119
* logical CPU core.
120120
*
121121
* @returns {Array<{
122-
* model: string
123-
* speed: number
122+
* model: string,
123+
* speed: number,
124124
* times: {
125-
* user: number
126-
* nice: number
127-
* sys: number
128-
* idle: number
125+
* user: number,
126+
* nice: number,
127+
* sys: number,
128+
* idle: number,
129129
* irq: number
130130
* }
131131
* }>}
@@ -246,12 +246,12 @@ function getCIDR(address, netmask, family) {
246246

247247
/**
248248
* @returns {Record<string, Array<{
249-
* address: string
250-
* netmask: string
251-
* family: 4 | 6
252-
* mac: string
253-
* internal: boolean
254-
* scopeid: number
249+
* address: string,
250+
* netmask: string,
251+
* family: 4 | 6,
252+
* mac: string,
253+
* internal: boolean,
254+
* scopeid: number,
255255
* cidr: string | null
256256
* }>>}
257257
*/
@@ -329,10 +329,10 @@ function getPriority(pid) {
329329
* `'buffer'`, the `username`, `shell`, and `homedir` values will
330330
* be `Buffer` instances.
331331
* @returns {{
332-
* uid: number
333-
* gid: number
334-
* username: string
335-
* homedir: string
332+
* uid: number,
333+
* gid: number,
334+
* username: string,
335+
* homedir: string,
336336
* shell: string | null
337337
* }}
338338
*/

0 commit comments

Comments
 (0)