Skip to content

Commit

Permalink
typings: update JSDoc for cwd in child_process
Browse files Browse the repository at this point in the history
PR-URL: #49029
Refs: #38862
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
LiviaMedeiros committed Aug 8, 2023
1 parent d150316 commit aed2b21
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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>;
Expand Down Expand Up @@ -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>;
Expand Down

0 comments on commit aed2b21

Please sign in to comment.