AboutSupportDeveloper GuideVersion 36.122.80.26

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

Type declaration

  • type: EventType

Remarks

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

See

Type Param

String key specifying the event to extract from the union