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.

22 lines 553 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessageResponse = void 0; class MessageResponse { constructor(responses = []) { this.responses = responses; } getFirst() { if (this.responses.length === 0) { return null; } return this.responses[0]; } isEmpty() { return 0 === this.responses.length; } getAll() { return this.responses; } } exports.MessageResponse = MessageResponse; //# sourceMappingURL=message-response.js.map