Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
index.d.ts: Allow 2 or 1 parameter exec() call. Fix callback paramete…
Browse files Browse the repository at this point in the history
…r types
  • Loading branch information
filipbudisa committed Dec 18, 2019
1 parent 91df887 commit 0ae7ed8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export function exec(cmd: string, options: { name?: string, icns?: string, env?: { [key: string]: string } }, callback: (error: string, stdout: string, stderr: string) => void): void;
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;

0 comments on commit 0ae7ed8

Please sign in to comment.