UNPKG

@nestjstools/messaging

Version:

Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.

14 lines (13 loc) 366 B
import { IMessageBus } from './i-message-bus'; import { Channel } from '../channel/channel'; export declare class MessageBusCollection { private collection; constructor(collection?: Collection[]); add(collection: Collection): void; getAll(): Collection[]; } interface Collection { messageBus: IMessageBus; channel: Channel<any>; } export {};