UNPKG

@nivinjoseph/n-domain

Version:

Domain Driven Design and Event Sourcing based framework for business layer implementation

11 lines 381 B
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