Replies: 3 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.
-
|
Also wondering... |
Beta Was this translation helpful? Give feedback.
-
|
I am running into this issue too now after upgrading to Angular v21. Anyone? |
Beta Was this translation helpful? Give feedback.
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 theDisconnectDescriptiontype?My IDE did following
Which is raising a TS error
Now what to do? I think as the
DisconnectReasonis inside theSocket, why not theDisconnectDescriptionis in there?i'm importing
SocketfromBeta Was this translation helpful? Give feedback.
All reactions