Skip to content

DecisionModelResult

API reference for DecisionModelResult

@delta-base/toolkit


Type Alias: DecisionModelResult<State, EventType>

Section titled “Type Alias: DecisionModelResult<State, EventType>”

DecisionModelResult<State, EventType> = object

Result of building a decision model

State

EventType extends Event = Event

appendCondition: AppendCondition

Pre-built append condition for passing to EventStore.append()


events: ReadEvent<EventType>[]

The events that were read and applied


lastPosition: GlobalPosition

The global position of the last event read


state: State

The projected state after applying all matching events