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