Skip to main content
Skip to main content

IEventBusModuleService

admin/discounts.internal.IEventBusModuleService

Implemented by

Methods

emit

emit<T>(eventName, data, options?): Promise<void>

TobjectRequired

Parameters

eventNamestringRequired
dataTRequired
optionsRecord<string, unknown>

Returns

Promise<void>

PromisePromise<void>Required

emit<T>(data): Promise<void>

TobjectRequired

Parameters

dataEmitData<T>[]Required

Returns

Promise<void>

PromisePromise<void>Required

subscribe

subscribe(eventName, subscriber, context?): IEventBusModuleService

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusModuleService

IEventBusModuleServiceIEventBusModuleServiceRequired

unsubscribe

unsubscribe(eventName, subscriber, context?): IEventBusModuleService

Parameters

eventNamestring | symbolRequired
subscriberSubscriberRequired

Returns

IEventBusModuleService

IEventBusModuleServiceIEventBusModuleServiceRequired
Was this section helpful?