Skip to content

Commit db013da

Browse files
committed
improve typing of kill
1 parent 91e668e commit db013da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export class PythonShell extends EventEmitter{
420420
* Sends a kill signal to the process
421421
* @returns {PythonShell} The same instance for chaining calls
422422
*/
423-
kill(signal?: string) {
423+
kill(signal?: NodeJS.Signals) {
424424
this.childProcess.kill(signal);
425425
this.terminated = true;
426426
return this;
@@ -430,7 +430,7 @@ export class PythonShell extends EventEmitter{
430430
* Alias for kill.
431431
* @deprecated
432432
*/
433-
terminate(signal?: string) {
433+
terminate(signal?: NodeJS.Signals) {
434434
return this.kill(signal)
435435
}
436436
};

0 commit comments

Comments
 (0)