You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
482 B

import { SpawnOptions } from 'child_process';
import { Writable } from 'stream';
declare namespace RunScript {
export interface Options extends SpawnOptions {
stdout?: Writable;
stderr?: Writable;
}
export interface Stdio {
stdout: Buffer | null;
stderr: Buffer | null;
}
export interface StdError extends Error {
stdio: Stdio;
}
}
declare function RunScript(cmd: string, opts?: RunScript.Options): Promise<RunScript.Stdio>;
export = RunScript;