Type Alias Sendable<D, _E, _T>

Sendable<D, _E, _T>: IsStringLiteral<_T> extends false
    ? "Error: No event found with `type` property of literal string value."
    : _T extends ReservedKeyword
        ? `Error: Event type '${_T}' is reserved.`
        : keyof _E extends "type"
            ? _E | _T
            : _E

The type of sendable event to send to the state machine.

Type Parameters

  • D

    The type of the state machine definition.

  • _E = TransitionEvent<D>

    (Internal) The type of the event.

  • _T = Get<_E, ["type"]>

    (Internal) The type of the event type.