Metakit / @doeixd/metakit/machine
startsOf
function · packages/metakit/src/machineStart.ts:29
function startsOf<State>(
machine: Pick<Machine<State, never>, 'stateSchema' | 'start'>,
reader: string,
from?: ReadonlyArray<State>,
): ReadonlyArray<State>The states a reader that needs somewhere to begin (reachability, a walk)
starts from: from, each checked as Machine.make checks start, else the
machine's start. A machine with neither is refused, naming reader.