@wixc3/patterns
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -0,7 +1,8 @@ | ||
import { Signal } from './signal'; | ||
/** | ||
* A simple event emitter | ||
*/ | ||
export declare class EventEmitter<Events extends Record<string, unknown>, EventId extends keyof Events = keyof Events> { | ||
private events; | ||
private emitOnce; | ||
export declare class EventEmitter<Events extends object, EventId extends keyof Events = keyof Events> { | ||
protected events: Map<EventId, Signal<any>>; | ||
protected emitOnce: Map<EventId, Signal<any>>; | ||
/** | ||
@@ -8,0 +9,0 @@ * Check if an event has subscribers |
@@ -0,7 +1,8 @@ | ||
import { Signal } from './signal'; | ||
/** | ||
* A simple event emitter | ||
*/ | ||
export declare class EventEmitter<Events extends Record<string, unknown>, EventId extends keyof Events = keyof Events> { | ||
private events; | ||
private emitOnce; | ||
export declare class EventEmitter<Events extends object, EventId extends keyof Events = keyof Events> { | ||
protected events: Map<EventId, Signal<any>>; | ||
protected emitOnce: Map<EventId, Signal<any>>; | ||
/** | ||
@@ -8,0 +9,0 @@ * Check if an event has subscribers |
{ | ||
"name": "@wixc3/patterns", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "A utility for saving objects to be disposed", | ||
@@ -21,5 +21,5 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@wixc3/common": "^3.0.4", | ||
"@wixc3/common": "^3.0.5", | ||
"promise-assist": "^1.3.0" | ||
} | ||
} |
@@ -6,5 +6,5 @@ import { Signal } from './signal'; | ||
*/ | ||
export class EventEmitter<Events extends Record<string, unknown>, EventId extends keyof Events = keyof Events> { | ||
private events = new Map<EventId, Signal<any>>(); | ||
private emitOnce = new Map<EventId, Signal<any>>(); | ||
export class EventEmitter<Events extends object, EventId extends keyof Events = keyof Events> { | ||
protected events = new Map<EventId, Signal<any>>(); | ||
protected emitOnce = new Map<EventId, Signal<any>>(); | ||
@@ -11,0 +11,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
91917
2008
Updated@wixc3/common@^3.0.5