Stricter typings for on
and emit
on client and server sides
#3777
-
Here is a TypeScript Playground link for an idea I've been thinking about for a while. Here is a link to the project repo. It allows to specify explicit typings / function signatures for The next thing I will add is an optional last argument for an ack function. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For future readers: This was implemented in 0107510, included in version 4.0.0 🚀 Documentation: https://socket.io/docs/v4/typescript/ |
Beta Was this translation helpful? Give feedback.
For future readers:
This was implemented in 0107510, included in version 4.0.0 🚀
Documentation: https://socket.io/docs/v4/typescript/