You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the DisconnectDescription type?
My IDE did following
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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