event-target-shim
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -138,3 +138,2 @@ export as namespace EventTargetShim; | ||
* @param options The options for this listener. | ||
* @returns `true` if the listener was actually added. | ||
*/ | ||
@@ -152,3 +151,2 @@ addEventListener( | ||
* @param options The options for this listener. | ||
* @returns `true` if the listener was actually removed. | ||
*/ | ||
@@ -173,2 +171,7 @@ removeEventListener( | ||
type EventTargetConstructor = { | ||
prototype: EventTarget; | ||
new(): EventTarget; | ||
}; | ||
type ExEventTarget<T extends string> = EventTarget & EventAttributes<T>; | ||
@@ -182,3 +185,4 @@ | ||
export const EventTarget: { | ||
new<T extends string = "">(): ExEventTarget<T>; | ||
new(): EventTarget; | ||
new<T extends string>(): ExEventTarget<T>; | ||
/** | ||
@@ -188,4 +192,6 @@ * The event target wrapper to be used when extending objects. | ||
*/ | ||
<T extends string = "">(events: string[]): ExEventTargetConstructor<T>; | ||
<T extends string = "">(...events: string[]): ExEventTargetConstructor<T>; | ||
(events: string[]): EventTargetConstructor; | ||
(...events: string[]): EventTargetConstructor; | ||
<T extends string>(events: string[]): ExEventTargetConstructor<T>; | ||
<T extends string>(...events: string[]): ExEventTargetConstructor<T>; | ||
}; | ||
@@ -192,0 +198,0 @@ export default EventTarget; |
{ | ||
"name": "event-target-shim", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "An implementation of WHATWG EventTarget interface.", | ||
@@ -5,0 +5,0 @@ "main": "dist/event-target-shim", |
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
181891
1756