1 | /// <reference types="node" />
|
2 |
|
3 | import * as child_process from "child_process";
|
4 |
|
5 | declare namespace spawn {
|
6 | /**
|
7 | * The `spawn()` method spawns a new process using the given `command`, with
|
8 | * command line arguments in `args`. If omitted, `args` defaults to an empty array.
|
9 | */
|
10 | const spawn: typeof child_process.spawn;
|
11 |
|
12 | /**
|
13 | * The `spawn.sync()` method spawns a new process using the given `command`, with
|
14 | * command line arguments in `args`. If omitted, `args` defaults to an empty array.
|
15 | */
|
16 | const sync: typeof child_process.spawnSync;
|
17 | }
|
18 |
|
19 | /**
|
20 | * The `spawn()` method spawns a new process using the given `command`, with
|
21 | * command line arguments in `args`. If omitted, `args` defaults to an empty array.
|
22 | */
|
23 | declare function spawn(command: string, options: child_process.SpawnOptions): child_process.ChildProcess;
|
24 | declare function spawn(
|
25 | command: string,
|
26 | args?: readonly string[],
|
27 | options?: child_process.SpawnOptions,
|
28 | ): child_process.ChildProcess;
|
29 |
|
30 | export = spawn;
|