Files
2026-03-04 16:22:42 -05:00

15 lines
385 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValueObject = void 0;
class ValueObject {
constructor(props) {
this.props = Object.freeze(props);
}
equals(other) {
if (!other)
return false;
return JSON.stringify(this.props) === JSON.stringify(other.props);
}
}
exports.ValueObject = ValueObject;