import { AggregateRoot as BaseAggregateRoot } from '@nestjs/cqrs' ; export abstract class AggregateRoot extends BaseAggregateRoot { public abstract aggregateId ( ) ; public equals ( other ) { if ( this . constructor !== other . constructor ) { return false ; } return this . aggregateId ( ) === other . aggregateId ( ) ; } }