UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

17 lines (16 loc) 878 B
/** * @module EventBus */ import { type BaseEvent, type EventListenerFn, type IEventBusAdapter } from "../../../../event-bus/contracts/_module.js"; import { type IReadableContext } from "../../../../execution-context/contracts/_module.js"; /** * The `NoOpEventBusAdapter` will do nothing and is used for easily mocking {@link IEventBus | `IEventBus`} for testing. * * IMPORT_PATH: `"@daiso-tech/core/event-bus/no-op-event-bus-adapter"` * @group Adapters */ export declare class NoOpEventBusAdapter implements IEventBusAdapter { addListener(_context: IReadableContext, _eventName: string, _listener: EventListenerFn<BaseEvent>): Promise<void>; removeListener(_context: IReadableContext, _eventName: string, _listener: EventListenerFn<BaseEvent>): Promise<void>; dispatch(_context: IReadableContext, _eventName: string, _eventData: BaseEvent): Promise<void>; }