@nivinjoseph/n-domain
Version:
Domain Driven Design and Event Sourcing based framework for business layer implementation
11 lines • 381 B
JavaScript
import { given } from "@nivinjoseph/n-defensive";
export class ConfigurableDomainContext {
_userId;
get userId() { return this._userId; }
set userId(value) { this._userId = value; }
constructor(userId) {
given(userId, "userId").ensureHasValue().ensureIsString();
this._userId = userId;
}
}
//# sourceMappingURL=configurable-domain-context.js.map