pnpm i @carbonteq/hexapp
npm i @carbonteq/hexapp
yarn add @carbonteq/hexapp
import { BaseEntity } from "@carbonteq/hexapp/domain/base.entity.js";
class User extends BaseEntity {
constructor(readonly name: string) {
super();
}
serialize() {
return {
...super._serialize(),
name: this.name,
};
}
}