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: nodejs/node#49029
Refs: nodejs/node#38862
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent 8ea60a1 commit c3b2d1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions graal-nodejs/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 @@ -743,7 +743,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 @@ -813,7 +813,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 @@ -907,7 +907,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 @@ -945,7 +945,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 c3b2d1a

Please sign in to comment.