Skip to content

Commit

Permalink
typings: fix os.cpus invalid return type
Browse files Browse the repository at this point in the history
PR-URL: #43006
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
himself65 authored and juanarbol committed May 31, 2022
1 parent 6b56ec7 commit 6de289b
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions lib/os.js
Expand Up @@ -119,15 +119,15 @@ function loadavg() {
* logical CPU core.
*
* @returns {Array<{
* model: string
* speed: number
* model: string,
* speed: number,
* times: {
* user: number
* nice: number
* sys: number
* idle: number
* irq: number
* }
* user: number,
* nice: number,
* sys: number,
* idle: number,
* irq: number,
* },
* }>}
*/
function cpus() {
Expand Down Expand Up @@ -246,13 +246,13 @@ function getCIDR(address, netmask, family) {

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

0 comments on commit 6de289b

Please sign in to comment.