UNPKG

694 BTypeScriptView Raw
1/// <reference types="node" />
2import { ChildProcess, SpawnOptions as NodeSpawnOptions } from 'child_process';
3declare 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}
19declare function spawnAsync(command: string, args?: ReadonlyArray<string>, options?: spawnAsync.SpawnOptions): spawnAsync.SpawnPromise<spawnAsync.SpawnResult>;
20export = spawnAsync;