index.d.ts: Fixed optional parameters for callback

This commit is contained in:
Filip Budiša 2019-12-18 19:16:05 +01:00
parent 0ae7ed8ff4
commit c7ba4d91e8

2
index.d.ts vendored
View file

@ -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;