Skip to content

BuildDecisionModelOptions

API reference for BuildDecisionModelOptions

@delta-base/toolkit


Type Alias: BuildDecisionModelOptions<State, EventType>

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

BuildDecisionModelOptions<State, EventType> = object

Options for building a decision model via DCB query

State

EventType extends Event = Event

optional after: GlobalPosition

Only return events after this global position


evolve: (state, event) => State

Pure function that folds an event into the current state

State

ReadEvent<EventType>

State


initialState: () => State

Factory function returning the initial state

State


optional limit: number

Maximum number of events to read


query: Query

DCB query to filter events