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 Parameter | Description |
---|---|
T | The type of data contained in message events |