Skip to content

Commit 32624c1

Browse files
authored
Merge pull request #24 from LinusU/patch-1
Add callback-as-second-argument support to typings
2 parents 6d6843c + c784c3d commit 32624c1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.d.ts

+2-5
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)