From f0aa5507070dc74859b636bd2dac37f3e8cab8d1 Mon Sep 17 00:00:00 2001 From: ninjuki Date: Sat, 18 Apr 2015 10:10:48 +0200 Subject: [PATCH] NodeJs exec function optional callback parameter --- node/node.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/node.d.ts b/node/node.d.ts index 95ea4d8fd..3760cd108 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -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[],