Renamed PathEventEmitter to follow convention
All checks were successful
Build / Build NPM Project (push) Successful in 27s
Build / Tag Version (push) Successful in 7s
Build / Publish Documentation (push) Successful in 26s

This commit is contained in:
Zakary Timson 2024-10-14 14:06:06 -04:00
parent 379de273c4
commit 2fda11f3b7
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.19.0",
"version": "0.19.1",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -216,13 +216,13 @@ export interface IPathedEventEmitter {
off(listener: PathListener): void;
on(event: string, listener: PathListener): PathUnsubscribe;
once(event: string, listener?: PathListener): Promise<any>;
relayEvents(emitter: PathedEventEmitter): void;
relayEvents(emitter: PathEventEmitter): void;
}
/**
* Event emitter that uses paths allowing listeners to listen to different combinations of modules, paths & methods
*/
export class PathedEventEmitter implements IPathedEventEmitter{
export class PathEventEmitter implements IPathedEventEmitter{
private listeners: [PathEvent, PathListener][] = [];
emit(event: string | PathEvent, ...args: any[]) {