1 |
|
2 | import { ChildProcess, SpawnOptions as NodeSpawnOptions } from 'child_process';
|
3 | declare namespace spawnAsync {
|
4 | interface SpawnOptions extends NodeSpawnOptions {
|
5 | ignoreStdio?: boolean;
|
6 | }
|
7 | interface SpawnPromise<T> extends Promise<T> {
|
8 | child: ChildProcess;
|
9 | }
|
10 | interface SpawnResult {
|
11 | pid?: number;
|
12 | output: string[];
|
13 | stdout: string;
|
14 | stderr: string;
|
15 | status: number | null;
|
16 | signal: string | null;
|
17 | }
|
18 | }
|
19 | declare function spawnAsync(command: string, args?: ReadonlyArray<string>, options?: spawnAsync.SpawnOptions): spawnAsync.SpawnPromise<spawnAsync.SpawnResult>;
|
20 | export = spawnAsync;
|