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.

8 lines (7 loc) 390 B
import { Message } from './message'; import { SealedRoutingMessage } from './sealed-routing-message'; import { RoutingMessage } from './routing-message'; export declare class MessageFactory { static creteSealedFromMessage(message: object | string, fromMessage: Message): SealedRoutingMessage; static creteRoutingFromMessage(message: object, fromMessage: Message): RoutingMessage; }