feat(core-events): IEventBus interface + symbol registry
IEventBus defines publish<T> and subscribe<T> with consumerFeature parameter. CORE_EVENTS_SYMBOLS.IEventBus uses Symbol.for for cross-module identity. Typecheck passes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
3
packages/core-events/src/symbols.ts
Normal file
3
packages/core-events/src/symbols.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const CORE_EVENTS_SYMBOLS = {
|
||||
IEventBus: Symbol.for("@repo/core-events/IEventBus"),
|
||||
} as const;
|
||||
Reference in New Issue
Block a user