switchyard
    Preparing search index...

    Interface PathOptions<M>

    Options for shortestPaths and simplePaths.

    interface PathOptions<M extends Machine<unknown>> {
        events?: (string | ModelEvent)[];
        key?: (machine: M) => string;
        maxDepth?: number;
    }

    Type Parameters

    Index
    events?: (string | ModelEvent)[]

    Events to try, with arguments. Defaults to every event method of the machine's class.

    key?: (machine: M) => string

    What makes two states the same. Defaults to the active configuration.

    maxDepth?: number

    The longest path explored.