Type Alias GuardEvent<D, N>

GuardEvent<D, N>: TransitionEventForType<D, ValueOf<{
    [V in keyof Get<D, ["states"]>]: _InferGuardEventType<D, ["states", V, "on"], N>
}> | _InferGuardEventType<D, ["on"], N>>

The type of event that triggered the transition for the given guard name.

Type Parameters

  • D

    The type of state machine definition.

  • N extends string

    The type of guard name.