Skip to main content

Class: Entity<T>

Type parameters

NameType
Tany

Hierarchy

  • Group

    Entity

Constructors

constructor

new Entity<T>(id): Entity<T>

Type parameters

NameType
Tany

Parameters

NameType
idstring

Returns

Entity<T>

Overrides

Group.constructor

Properties

entId

entId: string


onCreate

onCreate: (data: T) => void

Type declaration

▸ (data): void

Called when the entity is created.

Parameters
NameType
dataT
Returns

void


onDelete

onDelete: (data: T) => void

Type declaration

▸ (data): void

Parameters
NameType
dataT
Returns

void


onUpdate

onUpdate: (data: T) => void

Type declaration

▸ (data): void

Parameters
NameType
dataT
Returns

void


update

Optional update: () => void

Type declaration

▸ (): void

Returns

void