diff --git a/types/python-shell/index.d.ts b/types/python-shell/index.d.ts index f28cf45693..e0b2898b66 100644 --- a/types/python-shell/index.d.ts +++ b/types/python-shell/index.d.ts @@ -1,10 +1,11 @@ // Type definitions for python-shell 0.4 // Project: https://github.com/extrabacon/python-shell -// Definitions by: Dolan Miu +// Definitions by: Dolan Miu , Colin Richardson // 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;