Type Alias Action<D>

Action<D>: {
    payload: Sendable<D>;
    type: "SEND";
} | {
    payload: Context<D>;
    type: "SET_CONTEXT";
}

The action to send an event to the shared state machine.

Type Parameters

  • D

    The type of the shared state machine definition.