andjsrk

Results 4 comments of andjsrk

I think this is intentional, because: 1. The parameters of callback have nothing other than `Error`. 2. and socket.io explicitly excludes parameters of type `Error`: https://github.com/socketio/socket.io/blob/7fcddcb3bbd236b46aa8fee6f4ce6c45afb7b03a/packages/socket.io/lib/typed-events.ts#L36-L38 3. There is no...

Since both `(err: Error) => void` and `() => void` are unclear in perspective of "What does the event return?", I think excluding them is reasonable. If you intended "nothing...

`emitWithAck` (asynchronously) returns value that is specified on the callback, whereas `emit` does not. ```ts // example import { Server } from "socket.io" interface ServerToClientEvents { test: (cb: (result: number)...

(This comment is not intended to defend the current behavior) FYI, even you write explicit `void`, you don't need to write additional code on call site: ```ts interface ServerToClientEvents {...