Skip to content

es cqrs.TypeAlias.EventConstructor

Sclable CI edited this page Feb 4, 2026 · 9 revisions

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

Type Alias: EventConstructor()

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

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

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

Clone this wiki locally