@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.
17 lines • 725 B
TypeScript
import { AutoMapperSerializer, IValueObject } from "../interface/types";
import { AutoMapperValueObject } from "./auto-mapper-value-object";
import { VoHooks } from "./hooks";
export declare abstract class ValueObject<Props> implements IValueObject<Props> {
protected static hooks: VoHooks<any>;
protected static autoMapper: AutoMapperValueObject;
props: Readonly<Props>;
isValueObject: boolean;
constructor(input: Props);
get value(): Readonly<Props>;
getRawProps(): Readonly<Props>;
toPrimitives(): Readonly<AutoMapperSerializer<Props>>;
isEqual(other?: IValueObject<Props>): boolean;
clone(): IValueObject<Props>;
revalidate(): void;
}
//# sourceMappingURL=value-object.d.ts.map