Projection
API reference for Projection
Interface: Projection<TEvent>
Section titled “Interface: Projection<TEvent>”Interface for a projection that can handle events
Type Parameters
Section titled “Type Parameters”TEvent
Section titled “TEvent”TEvent
extends Event
The event type(s) this projection can handle
Properties
Section titled “Properties”supportedEventTypes
Section titled “supportedEventTypes”
readonly
supportedEventTypes:EventTypeOf
<TEvent
>[]
List of event types this projection can handle
Methods
Section titled “Methods”processEvents()
Section titled “processEvents()”processEvents(
events
):Promise
<void
>
Process events through this projection
Parameters
Section titled “Parameters”events
Section titled “events”ReadEvent
<TEvent
>[]
Events to process
Returns
Section titled “Returns”Promise
<void
>