From 0a665aaaf8e9e3fb7ada69b441de2c4aafb4a0a4 Mon Sep 17 00:00:00 2001 From: Marek Date: Tue, 24 Sep 2019 23:25:26 +0200 Subject: [PATCH] Add missing server.error in Socket.IO types (#38290) --- types/socket.io/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/socket.io/index.d.ts b/types/socket.io/index.d.ts index 4ea2e0cbde..5e17ff195a 100644 --- a/types/socket.io/index.d.ts +++ b/types/socket.io/index.d.ts @@ -6,6 +6,7 @@ // KentarouTakeda // Alexey Snigirev // Ezinwa Okpoechi +// Marek Urbanowicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -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 {