CommandHandlerOptions
API reference for CommandHandlerOptions
Type Alias: CommandHandlerOptions<State, TEvent>
Section titled “Type Alias: CommandHandlerOptions<State, TEvent>”CommandHandlerOptions<
State,TEvent> =object
Type Parameters
Section titled “Type Parameters”State
TEvent
Section titled “TEvent”TEvent extends Event
Properties
Section titled “Properties”evolve()
Section titled “evolve()”evolve: (
state,event) =>State
Parameters
Section titled “Parameters”State
ReadEvent<TEvent>
Returns
Section titled “Returns”State
expectedStreamVersion?
Section titled “expectedStreamVersion?”
optionalexpectedStreamVersion:ExpectedStreamVersion<StreamPosition>
initialState()
Section titled “initialState()”initialState: () =>
State
Returns
Section titled “Returns”State
retryOptions?
Section titled “retryOptions?”
optionalretryOptions:AsyncRetryOptions