34 lines
730 B
TypeScript
34 lines
730 B
TypeScript
import {
|
|
EventBusTypes,
|
|
IEventBusModuleService,
|
|
Message,
|
|
Subscriber,
|
|
} from "@medusajs/framework/types"
|
|
|
|
export default class EventBusService implements IEventBusModuleService {
|
|
async emit<T>(
|
|
data: Message<T> | Message<T>[],
|
|
options: Record<string, unknown>
|
|
): Promise<void> {}
|
|
|
|
subscribe(event: string | symbol, subscriber: Subscriber): this {
|
|
return this
|
|
}
|
|
|
|
unsubscribe(
|
|
event: string | symbol,
|
|
subscriber: Subscriber,
|
|
context?: EventBusTypes.SubscriberContext
|
|
): this {
|
|
return this
|
|
}
|
|
|
|
releaseGroupedEvents(eventGroupId: string): Promise<void> {
|
|
return Promise.resolve()
|
|
}
|
|
|
|
clearGroupedEvents(eventGroupId: string): Promise<void> {
|
|
return Promise.resolve()
|
|
}
|
|
}
|