This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.

17 lines
322 B
TypeScript

export interface EntityOptions {
id: string
}
export abstract class Entity implements EntityOptions {
public readonly id: string
public constructor(options: EntityOptions) {
const { id } = options
this.id = id
}
// public equals(entity: Entity): boolean {
// return entity.id === this.id
// }
}