sse.js
sse.js copied to clipboard
Is DispatchEvent ts definition wrong ?
Hi,
In types/sse.d.ts the DispatchEvent
is defined as this : export type DispatchEvent = (type: string, listener: Function) => boolean;
.
In lib/sse.js
the dispatchEvent
function only takes the event as argument : this.dispatchEvent = function(e) {
.
Is the TS definition wrong ?
Have a great day ;)