From 86a05ca60448b72329c06cd8384cb0c7e9bf759c Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 26 Mar 2022 20:48:11 -0700 Subject: [PATCH] lib: update JSDoc for linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix issue that will be flagged when we update ESLint and dependencies. PR-URL: https://github.com/nodejs/node/pull/42489 Reviewed-By: Tobias Nießen Reviewed-By: Trivikram Kamat Reviewed-By: Rich Trott Reviewed-By: Mestery Reviewed-By: Darshan Sen Reviewed-By: Colin Ihrig --- lib/child_process.js | 14 +++++++------- lib/fs.js | 4 ++-- lib/https.js | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 415010241cdaba..5679d4e6c90865 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -96,7 +96,7 @@ const MAX_BUFFER = 1024 * 1024; * @param {{ * cwd?: string; * detached?: boolean; - * env?: Object; + * env?: object; * execPath?: string; * execArgv?: string[]; * gid?: number; @@ -202,7 +202,7 @@ function normalizeExecArgs(command, options, callback) { * @param {string} command * @param {{ * cmd?: string; - * env?: Object; + * env?: object; * encoding?: string; * shell?: string; * signal?: AbortSignal; @@ -256,7 +256,7 @@ ObjectDefineProperty(exec, promisify.custom, { * @param {string[]} [args] * @param {{ * cwd?: string; - * env?: Object; + * env?: object; * encoding?: string; * timeout?: number; * maxBuffer?: number; @@ -673,7 +673,7 @@ function abortChildProcess(child, killSignal) { * @param {string[]} [args] * @param {{ * cwd?: string; - * env?: Object; + * env?: object; * argv0?: string; * stdio?: Array | string; * detached?: boolean; @@ -746,7 +746,7 @@ function spawn(file, args, options) { * input?: string | Buffer | TypedArray | DataView; * argv0?: string; * stdio?: string | Array; - * env?: Object; + * env?: object; * uid?: number; * gid?: number; * timeout?: number; @@ -838,7 +838,7 @@ function checkExecSyncError(ret, args, cmd) { * cwd?: string; * input?: string | Buffer | TypedArray | DataView; * stdio?: string | Array; - * env?: Object; + * env?: object; * uid?: number; * gid?: number; * timeout?: number; @@ -875,7 +875,7 @@ function execFileSync(command, args, options) { * cwd?: string; * input?: string | Buffer | TypedArray | DataView; * stdio?: string | Array; - * env?: Object; + * env?: object; * shell?: string; * uid?: number; * gid?: number; diff --git a/lib/fs.js b/lib/fs.js index cfebbac93b35eb..3299a62495e2ec 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -2877,7 +2877,7 @@ function lazyLoadStreams() { * start: number; * end?: number; * highWaterMark?: number; - * fs?: Object | null; + * fs?: object | null; * }} [options] * @returns {ReadStream} */ @@ -2897,7 +2897,7 @@ function createReadStream(path, options) { * autoClose?: boolean; * emitClose?: boolean; * start: number; - * fs?: Object | null; + * fs?: object | null; * }} [options] * @returns {WriteStream} */ diff --git a/lib/https.js b/lib/https.js index 7a9a4243aaae14..3834a881775349 100644 --- a/lib/https.js +++ b/lib/https.js @@ -362,7 +362,7 @@ function request(...args) { * createConnection?: Function; * defaultPort?: number; * family?: number; - * headers?: Object; + * headers?: object; * hints?: number; * host?: string; * hostname?: string;