Documentation / @tenancy-node/core / DomainEvent
Interface: DomainEvent<TType, TData>
Defined in: core/src/domain/events/domain-event.ts:5
Evento de dominio: algo que ya ocurrió. El EventBus lo envuelve en un sobre con id (ULID) y time antes de entregarlo a los listeners.
Type Parameters
TType
TType extends string = string
TData
TData = unknown
Properties
data
readonlydata:TData
Defined in: core/src/domain/events/domain-event.ts:7
tenantId?
readonlyoptionaltenantId?:string|null
Defined in: core/src/domain/events/domain-event.ts:9
Tenant al que pertenece. undefined = tomarlo del contexto actual. null = central.
type
readonlytype:TType
Defined in: core/src/domain/events/domain-event.ts:6