mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Add proper type to hasListeners
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user