Structural rather than the DOM type on purpose: Node's eventsource package
and the React Native polyfills are not DOM EventSources, and demanding one
made every consumer launder a perfectly capable object through
as unknown as EventSource — a cast that hides real mismatches as readily as
it waves through this one.
The slice of
EventSourcethis SDK actually uses.Structural rather than the DOM type on purpose: Node's
eventsourcepackage and the React Native polyfills are not DOMEventSources, and demanding one made every consumer launder a perfectly capable object throughas unknown as EventSource— a cast that hides real mismatches as readily as it waves through this one.