-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is DispatchEvent ts definition wrong ? #65
Comments
You removed the definition of To test it, you can do like me, try to override the default function ( So here you see that if I don't use By the way, is there a way to intercept all events without doing like I'm doing ? I cannot subscribe to all events because I don't know all event names :) |
Thanks @mgohin. There is no way to (currently) get all events, see #62 (comment) for the reason why. |
Hi,
In types/sse.d.ts the
DispatchEvent
is defined as this :export type DispatchEvent = (type: string, listener: Function) => boolean;
.In
lib/sse.js
thedispatchEvent
function only takes the event as argument :this.dispatchEvent = function(e) {
.Is the TS definition wrong ?
Have a great day ;)
The text was updated successfully, but these errors were encountered: