Skip to content

Commit 6de289b

Browse files
himself65juanarbol
authored andcommitted
typings: fix os.cpus invalid return type
PR-URL: #43006 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 6b56ec7 commit 6de289b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

lib/os.js

+20-20
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ 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
129-
* irq: number
130-
* }
125+
* user: number,
126+
* nice: number,
127+
* sys: number,
128+
* idle: number,
129+
* irq: number,
130+
* },
131131
* }>}
132132
*/
133133
function cpus() {
@@ -246,13 +246,13 @@ function getCIDR(address, netmask, family) {
246246

247247
/**
248248
* @returns {Record<string, Array<{
249-
* address: string
250-
* netmask: string
251-
* family: 'IPv4' | 'IPv6'
252-
* mac: string
253-
* internal: boolean
254-
* scopeid: number
255-
* cidr: string | null
249+
* address: string,
250+
* netmask: string,
251+
* family: 4 | 6,
252+
* mac: string,
253+
* internal: boolean,
254+
* scopeid: number,
255+
* cidr: string | null,
256256
* }>>}
257257
*/
258258
function networkInterfaces() {
@@ -329,11 +329,11 @@ 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
336-
* shell: string | null
332+
* uid: number,
333+
* gid: number,
334+
* username: string,
335+
* homedir: string,
336+
* shell: string | null,
337337
* }}
338338
*/
339339
function userInfo(options) {

0 commit comments

Comments
 (0)