Metakit / @doeixd/metakit/machine

Reachability

interface · packages/metakit/src/machinePhaseGraph.ts:138

interface Reachability<State, Name extends string> {
  readonly start: ReadonlyArray<Phase<State, Name>>
  readonly unreachable: ReadonlyArray<Phase<State, Name>>
  readonly deadEnds: ReadonlyArray<Phase<State, Name>>
}

What Machine.reachability found.

Members

Reachability.start

property · packages/metakit/src/machinePhaseGraph.ts:140

readonly start: ReadonlyArray<Phase<State, Name>>

The phases the walk began in: the start's, or those of from.

Reachability.unreachable

property · packages/metakit/src/machinePhaseGraph.ts:142

readonly unreachable: ReadonlyArray<Phase<State, Name>>

Phases no chain of edges from the start enters.

Reachability.deadEnds

property · packages/metakit/src/machinePhaseGraph.ts:144

readonly deadEnds: ReadonlyArray<Phase<State, Name>>

Phases no edge leaves for another phase: once there, the machine stays.