strict-event-emitter
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -10,2 +10,4 @@ /// <reference types="node" /> | ||
addListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this; | ||
prependListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this; | ||
prependOnceListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this; | ||
removeListener<K extends keyof EventMap>(event: K, listener: EventMap[K]): this; | ||
@@ -12,0 +14,0 @@ eventNames(): Array<keyof EventMap>; |
@@ -49,2 +49,8 @@ "use strict"; | ||
}; | ||
StrictEventEmitter.prototype.prependListener = function (event, listener) { | ||
return _super.prototype.prependListener.call(this, event.toString(), listener); | ||
}; | ||
StrictEventEmitter.prototype.prependOnceListener = function (event, listener) { | ||
return _super.prototype.prependOnceListener.call(this, event.toString(), listener); | ||
}; | ||
StrictEventEmitter.prototype.removeListener = function (event, listener) { | ||
@@ -51,0 +57,0 @@ return _super.prototype.removeListener.call(this, event.toString(), listener); |
{ | ||
"name": "strict-event-emitter", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Type-safe \"EventEmitter\" for everyday use", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8064
103