Xstate Machine
JSON that represents a statechart
| Type | object |
|---|---|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/xstate-machine/latest.json |
| Source | https://raw.githubusercontent.com/statelyai/xstate/main/packages/core/src/machine.schema.json |
Validate with Lintel
npx @lintel/lintel check
Type:
object
Properties
id
string
required
key
string
required
type
string
required
initial
object
3 nested properties
context
object
on
object
transitions
transitionObject[]
entry
array
exit
array
order
integer
invoke
invokeObject[]
version
string
Definitions
actionObject
object
type
string
required
The action type
baseStateNode
object
id
string
required
key
string
required
type
string
required
order
integer
description
string
The description of the state node, in Markdown
compoundStateNode
parallelStateNode
atomicStateNode
historyStateNode
finalStateNode
statesObject
object
initialTransitionObject
object
transitionsObject
object
transitionObject
object
eventType
string
required
source
string
required
target
string[]
required
cond
object
invokeObject
object
type
string
required
id
string
required
src
string
required
invokeArray
invokeObject[]
functionObject
object
$function
string
order
integer