@beenotung/tslib
Version:
utils library in Typescript
11 lines (10 loc) • 382 B
TypeScript
import { exec as _exec, SpawnOptionsWithoutStdio } from 'child_process';
export declare const exec: typeof _exec.__promisify__;
export declare function spawn(options: {
cmd: string;
args?: string[];
options?: SpawnOptionsWithoutStdio;
on_stdout?: (chunk: any) => void;
on_stderr?: (chunk: any) => void;
on_error?: (error: any) => void;
}): Promise<unknown>;