mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
[node] child_process stdio actually allows "inherit" (#28075)
This commit is contained in:
2
types/node/index.d.ts
vendored
2
types/node/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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"});
|
||||
|
||||
Reference in New Issue
Block a user