Skip to content

Commit b82f05c

Browse files
LiviaMedeirosRafaelGSS
authored andcommitted
typings: update JSDoc for cwd in child_process
PR-URL: #49029 Refs: #38862 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 9c26c0f commit b82f05c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/child_process.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ let addAbortListener;
103103
* @param {string|URL} modulePath
104104
* @param {string[]} [args]
105105
* @param {{
106-
* cwd?: string;
106+
* cwd?: string | URL;
107107
* detached?: boolean;
108108
* env?: Record<string, string>;
109109
* execPath?: string;
@@ -305,7 +305,7 @@ function normalizeExecFileArgs(file, args, options, callback) {
305305
* @param {string} file
306306
* @param {string[]} [args]
307307
* @param {{
308-
* cwd?: string;
308+
* cwd?: string | URL;
309309
* env?: Record<string, string>;
310310
* encoding?: string;
311311
* timeout?: number;
@@ -733,7 +733,7 @@ function abortChildProcess(child, killSignal, reason) {
733733
* @param {string} file
734734
* @param {string[]} [args]
735735
* @param {{
736-
* cwd?: string;
736+
* cwd?: string | URL;
737737
* env?: Record<string, string>;
738738
* argv0?: string;
739739
* stdio?: Array | string;
@@ -803,7 +803,7 @@ function spawn(file, args, options) {
803803
* @param {string} file
804804
* @param {string[]} [args]
805805
* @param {{
806-
* cwd?: string;
806+
* cwd?: string | URL;
807807
* input?: string | Buffer | TypedArray | DataView;
808808
* argv0?: string;
809809
* stdio?: string | Array;
@@ -897,7 +897,7 @@ function checkExecSyncError(ret, args, cmd) {
897897
* @param {string} file
898898
* @param {string[]} [args]
899899
* @param {{
900-
* cwd?: string;
900+
* cwd?: string | URL;
901901
* input?: string | Buffer | TypedArray | DataView;
902902
* stdio?: string | Array;
903903
* env?: Record<string, string>;
@@ -935,7 +935,7 @@ function execFileSync(file, args, options) {
935935
* Spawns a shell executing the given `command` synchronously.
936936
* @param {string} command
937937
* @param {{
938-
* cwd?: string;
938+
* cwd?: string | URL;
939939
* input?: string | Buffer | TypedArray | DataView;
940940
* stdio?: string | Array;
941941
* env?: Record<string, string>;

0 commit comments

Comments
 (0)