Skip to content

es cqrs.TypeAlias.EventConstructor

Sclable CI edited this page Oct 7, 2024 · 7 revisions

@sclable/nestjs-libs / es-cqrs / EventConstructor

Type Alias: EventConstructor()

EventConstructor: (aggregateId, aggregateType, revision, createdAt, userId, data, customOptions?) => Event

Constructor signature used to reconstruct an Event instance from the event store

Parameters

aggregateId: string

aggregateType: string

revision: number

createdAt: Date

userId: string

data: any

customOptions?: CustomEventOptions

Returns

Event

Defined in

packages/es-cqrs/src/interfaces/event.ts:109

Clone this wiki locally