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>
4 lines
105 B
TypeScript
4 lines
105 B
TypeScript
export const CORE_EVENTS_SYMBOLS = {
|
|
IEventBus: Symbol.for("@repo/core-events/IEventBus"),
|
|
} as const;
|