Type Alias EventFromEventType<TActor, TEventType>

EventFromEventType<TActor, TEventType>: xs.ExtractEvent<xs.EventFromLogic<TActor["logic"]>, TEventType>

Given a XState Actor and an xs.EventObject.type event type (the type field of an EventObject), returns the type of the corresponding event.

Does not apply to "emitted" events.

Type Parameters