Type alias StateValue

StateValue: string | {
    [parentState: string]: StateValue;
}

The state of a machine instance.

If the machine is in a single top-level state, this is the name of that state. If the machine is in a nested state, this is an object with the name of the parent state as the key and the name of the child state as the value. If the machine is in a parallel state, there will be multiple keys and values.

Identical to the state.value property of an XState state.

Type declaration

Generated using TypeDoc