diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..52485c5 --- /dev/null +++ b/index.d.ts @@ -0,0 +1 @@ +export function exec(cmd: string, options: { name?: string, icns?: string }, callback: (error: string, stdout: string, stderr: string) => void): void; \ No newline at end of file diff --git a/package.json b/package.json index 2a6083b..1edcd7f 100644 --- a/package.json +++ b/package.json @@ -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",