UNPKG

@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.

16 lines 384 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Policy = void 0; class Policy { constructor(policy) { this._specification = policy; } get specification() { return this._specification; } static use(policy) { return policy.specification; } } exports.Policy = Policy; //# sourceMappingURL=policy.js.map