12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
import { ExecOptions } from 'child_process';
|
|
|
|
interface ExecResult {
|
|
stdout: string;
|
|
stderr: string;
|
|
}
|
|
/**
|
|
* Exec as Promise
|
|
*/
|
|
declare function execAsync(cmd: string, options?: ExecOptions): Promise<ExecResult>;
|
|
|
|
export { type ExecResult, execAsync };
|