Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/xstate/src/types.ts>StateValue

State machines and statecharts for the modern web.
Go to Latest
type alias StateValue
import { type StateValue } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/types.ts";

The string or object representing the state value relative to the parent state node.

  • For a child atomic state node, this is a string, e.g., "pending".
  • For complex state nodes, this is an object, e.g., { success: "someChildState" }.
definition: string | StateValueMap