Replies: 2 comments
-
same for me :( if I try to do this:
the error I get is:
even though it's exported inside the socket.d.ts file (line 51):
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Also wondering... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm seeing that the disconnect handler (for
socket.on('disconnect', handlerFn)
is of type(reason: Socket.DisconnectReason, description?: DisconnectDescription) => void
. How to import theDisconnectDescription
type?My IDE did following
Which is raising a TS error
Now what to do? I think as the
DisconnectReason
is inside theSocket
, why not theDisconnectDescription
is in there?i'm importing
Socket
fromBeta Was this translation helpful? Give feedback.
All reactions