switchyard
    Preparing search index...

    Interface TransitionOptions

    interface TransitionOptions {
        event?: string;
        from?: State<never> | State<never>[];
        guard?: GuardRef;
        in?: string;
        reenter?: boolean;
        to?: State<never> | HistoryTarget;
    }
    Index
    event?: string

    The event's name, when it cannot be the method's: one of Machine's own (stop, send), or not an identifier (media.ended). Calling the method sends it.

    from?: State<never> | State<never>[]

    The source state(s). Omitted, every state handles the event.

    guard?: GuardRef
    in?: string

    The region, when a state's enum is used by more than one @region.

    reenter?: boolean

    Exit and re-enter the source even when the target is its descendant.

    to?: State<never> | HistoryTarget

    Omitted, the transition only runs its body.