Skip to content

Documentation / @eventkit/http / EventSourceEvent

Type Alias: EventSourceEvent<T>

ts
type EventSourceEvent<T> = ErrorEvent | Omit<MessageEvent, "data"> & object | Event;

Represents the different native event objects that can be emitted by an EventSource. This type union covers all possible event types: error, message, and open events.

Type Parameters

Type ParameterDescription
TThe type of data contained in message events

Released under the MIT License.