child_process parameters are optional

This commit is contained in:
Paulo Cesar
2014-11-19 16:50:59 -02:00
parent 7c194584f3
commit f750d0eb0a
+6 -2
View File
@@ -631,7 +631,11 @@ declare module "child_process" {
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;
export function execFile(file: string, args: string[], options: {
export function execFile(file: string,
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string, args?: string[],
callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function execFile(file: string, args?: string[], options?: {
cwd?: string;
stdio?: any;
customFds?: any;
@@ -640,7 +644,7 @@ declare module "child_process" {
timeout?: number;
maxBuffer?: string;
killSignal?: string;
}, callback: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
}, callback?: (error: Error, stdout: Buffer, stderr: Buffer) =>void ): ChildProcess;
export function fork(modulePath: string, args?: string[], options?: {
cwd?: string;
env?: any;