Skip to content

Commit 480511b

Browse files
committed
env type
1 parent c0b6efc commit 480511b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

types/arguments/options.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type {SignalConstants} from 'node:os';
2-
import type {env} from 'node:process';
32
import type {Readable} from 'node:stream';
43
import type {Unless} from '../utils.js';
54
import type {Message} from '../ipc.js';
@@ -77,7 +76,7 @@ export type CommonOptions<IsSync extends boolean = boolean> = {
7776
7877
@default [process.env](https://nodejs.org/api/process.html#processenv)
7978
*/
80-
readonly env?: typeof env;
79+
readonly env?: Partial<Record<string, string>>;
8180

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

0 commit comments

Comments
 (0)