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.

8 lines 583 B
import { Entity } from "../core/domain/entity"; /** * @description This decorator will ensure that the business rules will be applied only after the commit. * This will help in case your method has a lot of commits, and you want to apply the rules only after the last commit. * that means, if you update your entity X times in a method, the rules will be applied only after the method ends. */ export declare function ApplyRulesOnlyAfterCommitsSync(): (_: Entity<any>, __: string, descriptor: PropertyDescriptor) => void; //# sourceMappingURL=apply-rules-only-after-ends.d.ts.map