@ztimson/utils 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/path-events.d.ts +2 -2
- package/package.json +1 -1
package/dist/path-events.d.ts
CHANGED
|
@@ -120,12 +120,12 @@ export interface IPathedEventEmitter {
|
|
|
120
120
|
off(listener: PathListener): void;
|
|
121
121
|
on(event: string, listener: PathListener): PathUnsubscribe;
|
|
122
122
|
once(event: string, listener?: PathListener): Promise<any>;
|
|
123
|
-
relayEvents(emitter:
|
|
123
|
+
relayEvents(emitter: PathEventEmitter): void;
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Event emitter that uses paths allowing listeners to listen to different combinations of modules, paths & methods
|
|
127
127
|
*/
|
|
128
|
-
export declare class
|
|
128
|
+
export declare class PathEventEmitter implements IPathedEventEmitter {
|
|
129
129
|
private listeners;
|
|
130
130
|
emit(event: string | PathEvent, ...args: any[]): void;
|
|
131
131
|
off(listener: PathListener): void;
|