@mudssky/jsutils
    Preparing search index...

    Interface MachineTransitionArgs<TValue, TContext, TEvent>

    guard 和 assign 共用的转移上下文参数。

    interface MachineTransitionArgs<
        TValue extends string,
        TContext,
        TEvent extends { type: string },
    > {
        context: TContext;
        event: TEvent;
        value: TValue;
    }

    Type Parameters

    • TValue extends string

      状态值字面量联合类型

    • TContext

      上下文对象类型

    • TEvent extends { type: string }

      当前参与转移的事件类型

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    context: TContext
    event: TEvent
    value: TValue