Skip to content

KeyedState

Defined in: state-keyed.ts:11

Represents a state object with a unique key. *

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.
PropertyType
keystring