UNPKG

421 BTypeScriptView Raw
1import { ChildProcess } from 'child_process';
2
3declare function execSh(
4 command: string | string[],
5 options?: object | true,
6 callback?: (
7 error: Error | null,
8 stdout: string,
9 stderr: string
10 ) => void
11): ChildProcess;
12
13declare namespace execSh {
14 function promise(
15 command: string | string[],
16 options?: object | true
17 ): Promise<{ stdout: string, stderr: string }>;
18}
19
20export default execSh;