@radzor/state-machine
Finite state machine with guards, transition actions, and history tracking. Define states, transitions, and conditional logic for complex stateful workflows.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| definition* | MachineDefinition | — | State machine definition with states, transitions, and guards. |
| context | Record<string, unknown> | [object Object] | Initial context data available to guards and actions. |
| historySize | number | 100 | Maximum number of transition records to keep in history. |
State machine definition with states, transitions, and guards.
Initial context data available to guards and actions.
default: [object Object]