@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) • 772 B
TypeScript
/**
* @module EventBus
*/
import type { BaseEvent, EventListenerFn } from "../../../../event-bus/contracts/_module-exports.js";
import type { IEventBusAdapter } from "../../../../event-bus/contracts/_module-exports.js";
/**
* This `NoOpEventBusAdapter` will do nothing and is used for easily mocking {@link IEventBus | `IEventBus`} for testing.
*
* IMPORT_PATH: `"@daiso-tech/core/event-bus/adapters"`
* @group Adapters
*/
export declare class NoOpEventBusAdapter implements IEventBusAdapter {
addListener(_eventName: string, _listener: EventListenerFn<BaseEvent>): PromiseLike<void>;
removeListener(_eventName: string, _listener: EventListenerFn<BaseEvent>): PromiseLike<void>;
dispatch(_eventName: string, _eventData: BaseEvent): PromiseLike<void>;
}