KeyedState
Defined in: state-keyed.ts:11
Represents a state object with a unique key. *
Source
Section titled “Source”export interface KeyedState { key: string;}
- defineStates - for creating type-safe state factories (uses matchboxFactory)
- createMachine - for building state machines from state factories
- FactoryMachine - for the main state machine type These types are the underpinnings of the library, enabling type inference and state management throughout factory machines. The implementation leverages matchbox factories for dynamic and type-safe state construction and transitions.
Properties
Section titled “Properties”Property | Type |
---|---|
key | string |