We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e668e commit db013daCopy full SHA for db013da
index.ts
@@ -420,7 +420,7 @@ export class PythonShell extends EventEmitter{
420
* Sends a kill signal to the process
421
* @returns {PythonShell} The same instance for chaining calls
422
*/
423
- kill(signal?: string) {
+ kill(signal?: NodeJS.Signals) {
424
this.childProcess.kill(signal);
425
this.terminated = true;
426
return this;
@@ -430,7 +430,7 @@ export class PythonShell extends EventEmitter{
430
* Alias for kill.
431
* @deprecated
432
433
- terminate(signal?: string) {
+ terminate(signal?: NodeJS.Signals) {
434
return this.kill(signal)
435
}
436
};
0 commit comments