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

child_process: add env contents types in JSDoc #42494

Merged
merged 1 commit into from
Mar 30, 2022
Merged
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
14 changes: 7 additions & 7 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const MAX_BUFFER = 1024 * 1024;
* @param {{
* cwd?: string;
* detached?: boolean;
* env?: object;
* env?: Record<string, string>;
* execPath?: string;
* execArgv?: string[];
* gid?: number;
Expand Down Expand Up @@ -199,7 +199,7 @@ function normalizeExecArgs(command, options, callback) {
* @param {string} command
* @param {{
* cmd?: string;
* env?: object;
* env?: Record<string, string>;
* encoding?: string;
* shell?: string;
* signal?: AbortSignal;
Expand Down Expand Up @@ -253,7 +253,7 @@ ObjectDefineProperty(exec, promisify.custom, {
* @param {string[]} [args]
* @param {{
* cwd?: string;
* env?: object;
* env?: Record<string, string>;
* encoding?: string;
* timeout?: number;
* maxBuffer?: number;
Expand Down Expand Up @@ -662,7 +662,7 @@ function abortChildProcess(child, killSignal) {
* @param {string[]} [args]
* @param {{
* cwd?: string;
* env?: object;
* env?: Record<string, string>;
* argv0?: string;
* stdio?: Array | string;
* detached?: boolean;
Expand Down Expand Up @@ -735,7 +735,7 @@ function spawn(file, args, options) {
* input?: string | Buffer | TypedArray | DataView;
* argv0?: string;
* stdio?: string | Array;
* env?: object;
* env?: Record<string, string>;
* uid?: number;
* gid?: number;
* timeout?: number;
Expand Down Expand Up @@ -827,7 +827,7 @@ function checkExecSyncError(ret, args, cmd) {
* cwd?: string;
* input?: string | Buffer | TypedArray | DataView;
* stdio?: string | Array;
* env?: object;
* env?: Record<string, string>;
* uid?: number;
* gid?: number;
* timeout?: number;
Expand Down Expand Up @@ -864,7 +864,7 @@ function execFileSync(command, args, options) {
* cwd?: string;
* input?: string | Buffer | TypedArray | DataView;
* stdio?: string | Array;
* env?: object;
* env?: Record<string, string>;
* shell?: string;
* uid?: number;
* gid?: number;
Expand Down