From c7ba4d91e89a864cc2f67b578514ec9bab6b120f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Budi=C5=A1a?= Date: Wed, 18 Dec 2019 19:16:05 +0100 Subject: [PATCH] index.d.ts: Fixed optional parameters for callback --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 826c3be..329c122 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ export function exec(cmd: string, options?: ((error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void) | { name?: string, icns?: string, env?: { [key: string]: string } }, - callback?: (error: Error, stdout: string | Buffer, stderr: string | Buffer) => void): void; + callback?: (error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void): void;