From 2ededd19eef535f0b65e372d2f2ca28034746c0e Mon Sep 17 00:00:00 2001 From: WORMSS Date: Mon, 22 Jan 2018 16:58:42 +0000 Subject: [PATCH] Python Shell (#23104) Changed to python-shell to extends EventEmitter and removed on function since it is specified in EventEmitter --- types/python-shell/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;