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 <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
LiviaMedeiros 2023-08-06 02:11:47 +08:00
parent d150316a8e
commit aed2b21ac0
No known key found for this signature in database
GPG Key ID: 6E5412F8214FF24A

View File

@ -103,7 +103,7 @@ let addAbortListener;
* @param {string|URL} modulePath
* @param {string[]} [args]
* @param {{
* cwd?: string;
* cwd?: string | URL;
* detached?: boolean;
* env?: Record<string, string>;
* 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<string, string>;
* 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<string, string>;
* 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<string, string>;
@ -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<string, string>;