Skip to content

Commit

Permalink
env type
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Aug 9, 2024
1 parent c0b6efc commit 480511b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/arguments/options.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {SignalConstants} from 'node:os';
import type {env} from 'node:process';
import type {Readable} from 'node:stream';
import type {Unless} from '../utils.js';
import type {Message} from '../ipc.js';
Expand Down Expand Up @@ -77,7 +76,7 @@ export type CommonOptions<IsSync extends boolean = boolean> = {
@default [process.env](https://nodejs.org/api/process.html#processenv)
*/
readonly env?: typeof env;
readonly env?: Partial<Record<string, string>>;

/**
If `true`, the subprocess uses both the `env` option and the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).
Expand Down

0 comments on commit 480511b

Please sign in to comment.