Merge pull request #118 from filipbudisa/add-env-to-options-type

Add env to options in index.d.ts
This commit is contained in:
Joran Dirk Greef 2020-04-29 11:40:22 +02:00 committed by GitHub
commit 9a6ced42f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
index.d.ts vendored
View file

@ -1 +1,4 @@
export function exec(cmd: string, options: { name?: string, icns?: 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;