diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 63b06965f6..f768f0aae9 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2198,7 +2198,7 @@ declare module "child_process" { keepOpen?: boolean; } - export type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | stream.Stream | number | null | undefined)>; + export type StdioOptions = "pipe" | "ignore" | "inherit" | Array<("pipe" | "ipc" | "ignore" | "inherit" | stream.Stream | number | null | undefined)>; export interface SpawnOptions { cwd?: string; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index a7fcd4d44a..b4681b1d57 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -2329,7 +2329,7 @@ namespace child_process_tests { childProcess.exec("echo test", { windowsHide: true }); childProcess.spawn("echo", ["test"], { windowsHide: true }); childProcess.spawn("echo", ["test"], { windowsHide: true, argv0: "echo-test" }); - childProcess.spawn("echo", ["test"], { stdio: [0xdeadbeef, undefined, "pipe"] }); + childProcess.spawn("echo", ["test"], { stdio: [0xdeadbeef, "inherit", undefined, "pipe"] }); childProcess.spawnSync("echo test"); childProcess.spawnSync("echo test", {windowsVerbatimArguments: false}); childProcess.spawnSync("echo test", {windowsVerbatimArguments: false, argv0: "echo-test"});