Add proper type to hasListeners

This commit is contained in:
Karol Janyst
2017-08-17 14:18:52 +09:00
parent b5c337ed26
commit b9bdc181cb
+3 -1
View File
@@ -1,2 +1,4 @@
declare function hasListeners(obj: any, name?: string): boolean;
import { Emitter } from "event-emitter";
declare function hasListeners(emitter: Emitter, name?: string): boolean;
export = hasListeners;