diff --git a/index.d.ts b/index.d.ts index 52485c5..329c122 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1 +1,4 @@ -export function exec(cmd: string, options: { name?: string, icns?: string }, callback: (error: string, stdout: string, stderr: string) => void): void; \ No newline at end of file +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;