Skip to content
Myr

define env type (#1141)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Ingersoll · committed by GitHub · parent c0b6efc · Browse files · 2 files+32 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: ehmicky <ehmicky@users.noreply.github.com>

Diff stats

2 files+32 added−2 removed

  • other:+32 added−2 removed

2 files+32 added−2 removed

added:test-d/arguments/env.test-d.ts+31 added
modified:types/arguments/options.d.ts+1 added-2 removed
1import type {SignalConstants} from 'node:os';2import type {env} from 'node:process';2import type {Readable} from 'node:stream';3import type {Unless} from '../utils.js';4import type {Message} from '../ipc.js';5import type {StdinOptionCommon, StdoutStderrOptionCommon, StdioOptionsProperty} from '../stdio/type.js';
69 unmodified lines
75 Unless the `extendEnv` option is `false`, the subprocess also uses the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).7677 @default [process.env](https://nodejs.org/api/process.html#processenv)78 */80 readonly env?: typeof env;79 readonly env?: Readonly<Partial<Record<string, string>>>;8081 /**82 If `true`, the subprocess uses both the `env` option and the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).83 If `false`, only the `env` option is used, not `process.env`.
317 unmodified lines