Skip to content

Commit

Permalink
Add callback-as-second-argument support to typings
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Nov 3, 2018
1 parent 6d6843c commit c784c3d
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 c784c3d

Please sign in to comment.