AboutSupportDeveloper GuideVersion 41.129.83.3

Type Alias Payload<Event, EventType>

Payload<Event, EventType>: Extract<Event, {
    type: EventType;
}>

Extracts a single event type matching the given type key from the provided EmitterEvent union.

Type Parameters

Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to the appropriate payload union for that namespace.

String key specifying the event to extract from the union