index.d.ts: Fixed optional parameters for callback
This commit is contained in:
parent
0ae7ed8ff4
commit
c7ba4d91e8
1 changed files with 1 additions and 1 deletions
2
index.d.ts
vendored
2
index.d.ts
vendored
|
@ -1,4 +1,4 @@
|
||||||
export function exec(cmd: string,
|
export function exec(cmd: string,
|
||||||
options?: ((error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void)
|
options?: ((error?: Error, stdout?: string | Buffer, stderr?: string | Buffer) => void)
|
||||||
| { name?: string, icns?: string, env?: { [key: string]: string } },
|
| { 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;
|
||||||
|
|
Loading…
Reference in a new issue