NodeJs exec function optional callback parameter

This commit is contained in:
ninjuki 2015-04-18 10:10:48 +02:00
parent 52fa2b9ce3
commit f0aa550707

4
node/node.d.ts vendored
View File

@ -679,8 +679,8 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: number;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function exec(command: string, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string,
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string, args?: string[],