From b82f05cc4b873efdf7190f22736febf5fe2d19e7 Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Sun, 6 Aug 2023 02:11:47 +0800 Subject: [PATCH] typings: update JSDoc for `cwd` in `child_process` PR-URL: https://github.com/nodejs/node/pull/49029 Refs: https://github.com/nodejs/node/pull/38862 Reviewed-By: Yagiz Nizipli Reviewed-By: Luigi Pinca --- lib/child_process.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 5bdc474c80169c..449013906e93e5 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -103,7 +103,7 @@ let addAbortListener; * @param {string|URL} modulePath * @param {string[]} [args] * @param {{ - * cwd?: string; + * cwd?: string | URL; * detached?: boolean; * env?: Record; * execPath?: string; @@ -305,7 +305,7 @@ function normalizeExecFileArgs(file, args, options, callback) { * @param {string} file * @param {string[]} [args] * @param {{ - * cwd?: string; + * cwd?: string | URL; * env?: Record; * encoding?: string; * timeout?: number; @@ -733,7 +733,7 @@ function abortChildProcess(child, killSignal, reason) { * @param {string} file * @param {string[]} [args] * @param {{ - * cwd?: string; + * cwd?: string | URL; * env?: Record; * argv0?: string; * stdio?: Array | string; @@ -803,7 +803,7 @@ function spawn(file, args, options) { * @param {string} file * @param {string[]} [args] * @param {{ - * cwd?: string; + * cwd?: string | URL; * input?: string | Buffer | TypedArray | DataView; * argv0?: string; * stdio?: string | Array; @@ -897,7 +897,7 @@ function checkExecSyncError(ret, args, cmd) { * @param {string} file * @param {string[]} [args] * @param {{ - * cwd?: string; + * cwd?: string | URL; * input?: string | Buffer | TypedArray | DataView; * stdio?: string | Array; * env?: Record; @@ -935,7 +935,7 @@ function execFileSync(file, args, options) { * Spawns a shell executing the given `command` synchronously. * @param {string} command * @param {{ - * cwd?: string; + * cwd?: string | URL; * input?: string | Buffer | TypedArray | DataView; * stdio?: string | Array; * env?: Record;