Skip to content

Commit

Permalink
Merge pull request #200 from GaetanCottrez/bugfix/wrong-return-type-s…
Browse files Browse the repository at this point in the history
…ervereventnager-dispatchEvent

fix(servereventmanager): change value emit for respect type Event
  • Loading branch information
4lessandrodev authored Nov 30, 2024
2 parents 12ffca9 + a7ab3a6 commit 7a557ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/server-event-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class ServerEventManager implements EventManager {
const localEventName = this.events[i].eventName;
const match = regex.test(localEventName);
if (match) {
this.emitter.emit(localEventName, args);
this.emitter.emit(localEventName, { detail: args || [] });
}
i++;
}
Expand Down

0 comments on commit 7a557ec

Please sign in to comment.