Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typings: update JSDoc for cwd in child_process #49029

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading