Type alias StructuredSourceStateNodeConfig<TContext, TStateSchema, TEvent>
Structured
Source
State
Node
Config
<TContext, TStateSchema, TEvent>: Pick<StateNodeDefinition<TContext, TStateSchema, TEvent>, "data" | "description" | "entry" | "exit" | "history" | "id" | "initial" | "key" | "meta" | "order" | "tags" | "type" | "invoke"> & { stateDefinitions
: Readonly<Record<string, StateNodeDefinition<TContext, TStateSchema, TEvent>>>; transitions
: StructuredTransitionConfig<TContext, TEvent>[]; }
Type Parameters
-
TContext
-
TStateSchema extends StateSchema<any>
-
TEvent extends EventObject
The input type provided to a state mapper. This type is similar to an XState StateNodeDefinition but removes redundant information and provides data better suited to modification. For example, instead of
on
andalways
, we only provide atransitions
property, which is always an array of StructuredTransitionConfigs.