Optional
eventMapSchema?: EventMapSchema<TEventMap>You can provide any standard schema compliant object to validate all input and output data to ensure runtime type safety.
Optional
lazyPromiseFactory?: Factory<AsyncLazy<any>, LazyPromise<any>>You can pass a Factory
of LazyPromise
to configure default settings for all LazyPromise
instances used in the EventBus
class.
Optional
namespace?: NamespaceOptional
shouldValidateOutput?: booleanYou can enable validating events in listeners.
IMPORT_PATH:
"@daiso-tech/core/event-bus"