mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add spawn() overload which takes options but no args
This commit is contained in:
parent
28e745f92d
commit
73cfb3d8b8
1
types/node/index.d.ts
vendored
1
types/node/index.d.ts
vendored
@ -2655,6 +2655,7 @@ declare module "child_process" {
|
||||
windowsHide?: boolean;
|
||||
}
|
||||
|
||||
function spawn(command: string, options?: SpawnOptions): ChildProcess;
|
||||
function spawn(command: string, args?: ReadonlyArray<string>, options?: SpawnOptions): ChildProcess;
|
||||
|
||||
interface ExecOptions {
|
||||
|
||||
@ -2636,6 +2636,8 @@ async function asyncStreamPipelineFinished() {
|
||||
{
|
||||
childProcess.exec("echo test");
|
||||
childProcess.exec("echo test", { windowsHide: true });
|
||||
childProcess.spawn("echo");
|
||||
childProcess.spawn("echo", { windowsHide: true });
|
||||
childProcess.spawn("echo", ["test"], { windowsHide: true });
|
||||
childProcess.spawn("echo", ["test"], { windowsHide: true, argv0: "echo-test" });
|
||||
childProcess.spawn("echo", ["test"], { stdio: [0xdeadbeef, "inherit", undefined, "pipe"] });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user