AboutSupportDeveloper GuideVersion 38.126.83.74

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

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: Type

String key specifying the event to extract from the union