Constructors
Parameters
externalrest...items: (DomainEvent & { sceneId: CorrelationId })[]
Accessors
- get sceneId(): CorrelationId
Methods
- enqueue(event: DomainEvent & { sceneId: CorrelationId }): void
Parameters
externalevent: DomainEvent & { sceneId: CorrelationId }
Returns void
- reduce<U>(fn: (previousValue: U, currentValue: DomainEvent & { sceneId: CorrelationId }, currentIndex: number) => U, initialValue: U): U
Type parameters
Parameters
externalfn: (previousValue: U, currentValue: DomainEvent & { sceneId: CorrelationId }, currentIndex: number) => U
externalinitialValue: U
Returns U