Skip to content

Commit c784c3d

Browse files
authored
Add callback-as-second-argument support to typings
1 parent 6d6843c commit c784c3d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
* @param signal 'SIGTERM' by default
66
* @param callback
77
*/
8-
declare function treeKill(
9-
pid: number,
10-
signal?: string | number,
11-
callback?: (error?: Error) => void,
12-
): void;
8+
declare function treeKill(pid: number, callback?: (error?: Error) => void): void;
9+
declare function treeKill(pid: number, signal?: string | number, callback?: (error?: Error) => void): void;
1310

1411
declare namespace treeKill {}
1512

0 commit comments

Comments
 (0)