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.

16 lines (15 loc) 703 B
/** * @module EventBus */ import { type BaseEvent, type EventListenerFn, type IEventBusAdapter } from "../../../../event-bus/contracts/_module.js"; /** * This `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(_eventName: string, _listener: EventListenerFn<BaseEvent>): Promise<void>; removeListener(_eventName: string, _listener: EventListenerFn<BaseEvent>): Promise<void>; dispatch(_eventName: string, _eventData: BaseEvent): Promise<void>; }