@grubou/bussy
Version:
Command & query bus implementations
13 lines • 415 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InternalCommandBus = void 0;
class InternalCommandBus {
constructor(middlewareChain) {
this.middlewareChain = middlewareChain;
}
async publish(command) {
return this.middlewareChain.handle(command);
}
}
exports.InternalCommandBus = InternalCommandBus;
//# sourceMappingURL=InternalCommandBus.js.map