Type Alias TransitionEventForStateValue<D, V>

TransitionEventForStateValue<D, V>: (V extends Get<D, ["initial"]>
    ? {
        type: "$init";
    }
    : never) | TransitionEventForType<D, _InferAllTransitionEventTypesForStateValue<D, V>>

The type of event that triggered the transition for the given state value.

Type Parameters

  • D

    The state machine definition.

  • V

    The state value.