Interface StateMachineParameters<State, Event, Context>

Type Parameters

  • State extends AllowedNames | AllowedNames[]

  • Event extends AllowedNames

  • Context extends FsmContext<object> = FsmContext<object>

Hierarchy

  • StateMachineParameters

Properties

data?: ((parameters) => Context["data"] | Promise<Context["data"]>)

Type declaration

    • (parameters): Context["data"] | Promise<Context["data"]>
    • Parameters

      Returns Context["data"] | Promise<Context["data"]>

id?: string
initial: State
inject?: Injectable<State, Event, Context>
states?: ((parameters) => {
    [key in AllowedNames]?: Nested
})

Type declaration

    • (parameters): {
          [key in AllowedNames]?: Nested
      }
    • Parameters

      Returns {
          [key in AllowedNames]?: Nested
      }

subscribers?: Subscribers<Event, Context>
transitions?: [Transition<State, Event, Context>, ...Transition<State, Event, Context>[]]

Generated using TypeDoc