import { StateNode } from "https://deno.land/x/xstate@xstate%405.12.0/src/StateNode.ts";
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<EventDescriptor<TEvent>>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, ProvidedActor, ParameterizedObject, ParameterizedObject, string, TODO, TODO>>The logic invoked as actors by this state node.
machine: StateMachine<TContext, TEvent, any, any, any, any, any, any, any, any, any, any, any>
The root machine node.
optional
output: Mapper<MachineContext, EventObject, unknown, EventObject> | NonReducibleUnknownThe output data sent with the "xstate.done.state.id" event if this is a final state node.
readonly
ownEvents: Array<EventDescriptor<TEvent>>All the events that have transitions directly from this state node.
Excludes any inert events.
transitions: Map<string, TransitionDefinition<TContext, TEvent>[]>
Methods
next(snapshot: MachineSnapshot<TContext, TEvent, any, any, any, any, any>, event: TEvent): TransitionDefinition<TContext, TEvent>[] | undefined
toJSON()