feat(core-events): IEventBus extends EventBusProtocol

This commit is contained in:
2026-05-09 12:36:38 +02:00
parent 5ba11e3405
commit 07fa35cd0b

View File

@@ -1,9 +1,10 @@
import type { z } from "zod";
import type { EventBusProtocol } from "@repo/core-shared/di/bind-protocols";
import type { EventDescriptor } from "./event-descriptor";
export type EventHandler<T> = (event: T) => Promise<void>;
export interface IEventBus {
export interface IEventBus extends EventBusProtocol {
publish<T>(
descriptor: EventDescriptor<string, z.ZodType<T>>,
payload: T,