import { StateMachine } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/StateMachine.ts";
Constructors
Type Parameters
Properties
The initial State instance, which includes all actions to be executed from entering the initial state.
Methods
The initial state before evaluating any microsteps. This "pre-initial" state is provided to initial actions executed in the initial state.
Returns the initial State
instance, with reference to self
as an ActorRef
.
Determines the next state given the current state
and event
.
Calculates a microstep.
Clones this state machine with the provided implementations
and merges the context
(if provided).
Resolves the given state
to a new State
instance relative to this machine.
This ensures that .nextEvents
represent the correct values.
Determines the next state given the current state
and received event
.
Calculates a full macrostep from all microsteps.