strict-event-emitter
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -12,5 +12,5 @@ /// <reference types="node" /> | ||
eventNames(): Array<keyof EventMap>; | ||
listeners<K extends keyof EventMap>(event: K): Function[]; | ||
rawListeners<K extends keyof EventMap>(event: K): Function[]; | ||
listeners<K extends keyof EventMap>(event: K): Array<EventMap[K]>; | ||
rawListeners<K extends keyof EventMap>(event: K): Array<EventMap[K]>; | ||
listenerCount<K extends keyof EventMap>(event: K): number; | ||
} |
{ | ||
"name": "strict-event-emitter", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Type-safe \"EventEmitter\" for everyday use", | ||
@@ -12,5 +12,6 @@ "main": "lib/index.js", | ||
"test": "jest", | ||
"test:ts": "tsc -p test/typings.tsconfig.json", | ||
"clean": "rimraf ./lib", | ||
"build": "yarn clean && tsc", | ||
"prepublishOnly": "yarn test && yarn build" | ||
"prepublishOnly": "yarn test && yarn test:ts && yarn build" | ||
}, | ||
@@ -17,0 +18,0 @@ "files": [ |
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
7530