Interface CommandHandler<State, Command, Event, Opts>

Command handler function.

interface CommandHandler ((state, command, options?) => MaybePromise<undefined | Event>)

Type Parameters

  • State

  • Command

  • Event

  • Opts = object

Generated using TypeDoc