Skip to content

Commit

Permalink
os: fix cpus invalid return type jsdoc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed May 8, 2022
1 parent 7a53696 commit 075b04f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lib/os.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ function loadavg() {
* logical CPU core.
*
* @returns {Array<{
* model: string
* speed: number
* model: string,
* speed: number,
* times: {
* user: number
* nice: number
* sys: number
* idle: number
* user: number,
* nice: number,
* sys: number,
* idle: number,
* irq: number
* }
* }>}
Expand Down Expand Up @@ -246,12 +246,12 @@ function getCIDR(address, netmask, family) {

/**
* @returns {Record<string, Array<{
* address: string
* netmask: string
* family: 4 | 6
* mac: string
* internal: boolean
* scopeid: number
* address: string,
* netmask: string,
* family: 4 | 6,
* mac: string,
* internal: boolean,
* scopeid: number,
* cidr: string | null
* }>>}
*/
Expand Down Expand Up @@ -329,10 +329,10 @@ function getPriority(pid) {
* `'buffer'`, the `username`, `shell`, and `homedir` values will
* be `Buffer` instances.
* @returns {{
* uid: number
* gid: number
* username: string
* homedir: string
* uid: number,
* gid: number,
* username: string,
* homedir: string,
* shell: string | null
* }}
*/
Expand Down

0 comments on commit 075b04f

Please sign in to comment.