mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Python Shell (#23104)
Changed to python-shell to extends EventEmitter and removed on function since it is specified in EventEmitter
This commit is contained in:
parent
29b272bc7b
commit
2ededd19ee
7
types/python-shell/index.d.ts
vendored
7
types/python-shell/index.d.ts
vendored
@ -1,10 +1,11 @@
|
||||
// Type definitions for python-shell 0.4
|
||||
// Project: https://github.com/extrabacon/python-shell
|
||||
// Definitions by: Dolan Miu <https://github.com/dolanmiu>
|
||||
// Definitions by: Dolan Miu <https://github.com/dolanmiu>, Colin Richardson <https://github.com/WORMSS>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export class PythonShell {
|
||||
on(message: string, callback: (message: string) => void): void;
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
export class PythonShell extends EventEmitter {
|
||||
end(callback: (message: string) => void): void;
|
||||
send(message: any | string): void;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user