UNPKG

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