DecisionModelResult
API reference for DecisionModelResult
Type Alias: DecisionModelResult<State, EventType>
Section titled “Type Alias: DecisionModelResult<State, EventType>”DecisionModelResult<
State,EventType> =object
Result of building a decision model
Type Parameters
Section titled “Type Parameters”State
EventType
Section titled “EventType”EventType extends Event = Event
Properties
Section titled “Properties”appendCondition
Section titled “appendCondition”appendCondition:
AppendCondition
Pre-built append condition for passing to EventStore.append()
events
Section titled “events”events:
ReadEvent<EventType>[]
The events that were read and applied
lastPosition
Section titled “lastPosition”lastPosition:
GlobalPosition
The global position of the last event read
state:
State
The projected state after applying all matching events