Class: Entity<T>
Type parameters
| Name | Type | 
|---|---|
| T | any | 
Hierarchy
- 
Group↳ Entity
Constructors
constructor
• new Entity<T>(id): Entity<T>
Type parameters
| Name | Type | 
|---|---|
| T | any | 
Parameters
| Name | Type | 
|---|---|
| id | string | 
Returns
Entity<T>
Overrides
Group.constructor
Properties
entId
• entId: string
onCreate
• onCreate: (data: T) => void
Called when the entity is created.
Type declaration
▸ (data): void
Parameters
| Name | Type | 
|---|---|
| data | T | 
Returns
void
onDelete
• onDelete: (data: T) => void
Type declaration
▸ (data): void
Parameters
| Name | Type | 
|---|---|
| data | T | 
Returns
void
onUpdate
• onUpdate: (data: T) => void
Type declaration
▸ (data): void
Parameters
| Name | Type | 
|---|---|
| data | T | 
Returns
void
update
• Optional update: () => void
Type declaration
▸ (): void
Returns
void