sse.js icon indicating copy to clipboard operation
sse.js copied to clipboard

Is DispatchEvent ts definition wrong ?

Open mgohin opened this issue 8 months ago • 3 comments

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 ;)

mgohin avatar May 28 '24 12:05 mgohin