Skip to content

Commit

Permalink
Merge pull request #24 from LinusU/patch-1
Browse files Browse the repository at this point in the history
Add callback-as-second-argument support to typings
  • Loading branch information
billiegoose committed Nov 5, 2018
2 parents 6d6843c + c784c3d commit 32624c1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.d.ts
Expand Up @@ -5,11 +5,8 @@
* @param signal 'SIGTERM' by default
* @param callback
*/
declare function treeKill(
pid: number,
signal?: string | number,
callback?: (error?: Error) => void,
): void;
declare function treeKill(pid: number, callback?: (error?: Error) => void): void;
declare function treeKill(pid: number, signal?: string | number, callback?: (error?: Error) => void): void;

declare namespace treeKill {}

Expand Down

0 comments on commit 32624c1

Please sign in to comment.