StateMachineDefinition
Defined in: types.ts:211
A finite state machine. Its mode lives at state[name].mode.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
initialState | string | Mode used when state has no state[name].mode yet. A mode present in state (seeded or hydrated) always takes precedence. | types.ts:218 |
name | string | Also the key of its slice of state. | types.ts:213 |
states | Record<string, StateDefinition> | Every mode, by name. | types.ts:220 |