@hackdonalds/emitter
Advanced tools
Comparing version 0.5.2 to 0.6.0
@@ -9,3 +9,3 @@ declare type EventHandler = (event?: any) => void; | ||
}; | ||
export default class Emitter<EventNames> { | ||
export default class Emitter<EventNames = any> { | ||
listeners: EventHandlerMap; | ||
@@ -12,0 +12,0 @@ constructor(listeners?: EventHandlerMap); |
@@ -5,4 +5,5 @@ { | ||
"keywords": ["event", "emitter", "isomorphic", "events", "nodejs", "Javascript", "mitt", "eventemitter"], | ||
"version": "0.5.2", | ||
"version": "0.6.0", | ||
"main": "dist/index.js", | ||
"files": ["dist","README.md","src"], | ||
@@ -9,0 +10,0 @@ "scripts": { |
@@ -13,3 +13,3 @@ type EventHandler = (event?: any) => void; | ||
export default class Emitter<EventNames> { | ||
export default class Emitter<EventNames=any> { | ||
constructor(public listeners: EventHandlerMap = {}) { | ||
@@ -58,2 +58,2 @@ this.listeners = listeners | ||
(window as any).HackDonalds = { Emitter } | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
11405
137