Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.19/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