AboutSupportDeveloper GuideVersion 40.130.101.1

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