Type Alias TEventPayload<EventName>

TEventPayload<EventName>: TEvents[EventName] extends {
        data: null;
    }
    ? TEvents[EventName]["data"]
    : TEvents[EventName]

Type Parameters