Type alias StatePath

StatePath: string[]

A path from the root of the machine, through the state hierarchy, to a single leaf state.

For a machine like this:

{
initial: "a",
states: {
a: {
initial: "b",
states: {
b: {}
}
}
}
}

You may see a StatePath like this: ["a", "b"].

Generated using TypeDoc