Interface MessageReduceHandler<State, Msg, Opts>
interface MessageReduceHandler ((state,
message,
options?) => MaybePromise<State>) Type Parameters
State = unknown
Msg = unknown
Opts = object
- MessageReduceHandler(state, message, options?): MaybePromise<State>
Parameters
state: State
message: Msg
Optional
options: AbortOptions & Opts
Reducer function of messages to state.