Merge pull request #115 from bpasero/types

Add TypeScript types file
This commit is contained in:
Joran Dirk Greef 2019-11-13 08:50:55 +02:00 committed by GitHub
commit 3d6f25b4f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
index.d.ts vendored Normal file
View file

@ -0,0 +1 @@
export function exec(cmd: string, options: { name?: string, icns?: string }, callback: (error: string, stdout: string, stderr: string) => void): void;

View file

@ -3,6 +3,7 @@
"version": "9.0.0",
"description": "Run a command using sudo, prompting the user with an OS dialog if necessary",
"main": "index.js",
"types": "index.d.ts",
"files": [
"LICENSE",
"README.md",