mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 02:30:12 +00:00
Add missing server.error in Socket.IO types (#38290)
This commit is contained in:
7
types/socket.io/index.d.ts
vendored
7
types/socket.io/index.d.ts
vendored
@@ -6,6 +6,7 @@
|
||||
// KentarouTakeda <https://github.com/KentarouTakeda>
|
||||
// Alexey Snigirev <https://github.com/gigi>
|
||||
// Ezinwa Okpoechi <https://github.com/BrainMaestro>
|
||||
// Marek Urbanowicz <https://github.com/murbanowicz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
///<reference types="node" />
|
||||
@@ -662,6 +663,12 @@ declare namespace SocketIO {
|
||||
* @return This Socket
|
||||
*/
|
||||
compress( compress: boolean ): Socket;
|
||||
|
||||
/**
|
||||
* Emits the error
|
||||
* @param err Error message=
|
||||
*/
|
||||
error(err: any): void;
|
||||
}
|
||||
|
||||
interface Handshake {
|
||||
|
||||
Reference in New Issue
Block a user