import { StateNode } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/StateNode.ts";
Constructors
new
StateNode(config: StateNodeConfig<TContext, TEvent>, options: StateNodeOptions<TContext, TEvent>)Type Parameters
optional
TContext extends MachineContext = MachineContextoptional
TEvent extends EventObject = EventObjectProperties
readonly
after: Array<DelayedTransitionDefinition<TContext, TEvent>>optional
always: Array<TransitionDefinition<TContext, TEvent>>readonly
events: Array<TEvent["type"]>All the event types accepted by this state node and its descendants.
The type of history on this state node. Can be:
'shallow'
- recalls only top-level historical state value'deep'
- recalls historical state value at all levels
readonly
initial: InitialTransitionDefinition<TContext, TEvent>readonly
invoke: Array<InvokeDefinition<TContext, TEvent>>The behaviors invoked as actors by this state node.
readonly
ownEvents: Array<TEvent["type"]>All the events that have transitions directly from this state node.
Excludes any inert events.
The target state value of the history state node, if it exists. This represents the default state value to transition to if no history value exists yet.
transitions: Array<TransitionDefinition<TContext, TEvent>>