UNPKG

@cashfarm/plow

Version:

Library for validating input data and parameters

25 lines 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const class_transformer_1 = require("class-transformer"); const entity_1 = require("./entity"); const debug = require('debug')('plow:aggregate'); /** * Base implementation of an aggregate root. * * @export * @class AggregateRoot * @template TId */ class AggregateRoot extends entity_1.Entity { constructor() { super(...arguments); this._events = []; } } tslib_1.__decorate([ class_transformer_1.Exclude(), tslib_1.__metadata("design:type", Array) ], AggregateRoot.prototype, "_events", void 0); exports.AggregateRoot = AggregateRoot; //# sourceMappingURL=aggregateRoot.js.map