@nodecg/types
Version:
Dynamic broadcast graphics rendered in a browser
18 lines (16 loc) • 472 B
text/typescript
/* eslint-disable @typescript-eslint/no-namespace */
/**
* The Socket.IO typedefs leave a lot to be desired,
* so we augment them a bit here for improved precision
* and coverage.
*/
declare namespace SocketIO {
/**
* Lange: I'm actually upset at how poorly documented this part of Socket.IO is lmao
*/
export type NextFunction = (err?: NodeJS.ErrnoException) => void;
export type Acknowledgement = (
err?: NodeJS.ErrnoException,
data?: any,
) => void;
}