@hiki9/rich-domain
Version:
Rich Domain is a library that provides a set of tools to help you build complex business logic in NodeJS using Domain Driven Design principles.
12 lines • 386 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomainEvent = void 0;
class DomainEvent {
constructor(aggregate, eventName) {
this.aggregate = aggregate;
this.createdAt = new Date();
this.eventName = eventName || this?.constructor?.name;
}
}
exports.DomainEvent = DomainEvent;
//# sourceMappingURL=domain-event.js.map