From 0cb6ac95b49a27483b6f1b6402fa54b35f82e36f Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Mon, 17 May 2021 22:48:45 +0200 Subject: [PATCH] fix(typings): ensure compatibility with TypeScript 3.x Labeled tuple elements were added in TypeScript 4.0. Reference: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#labeled-tuple-elements Related: https://github.com/socketio/socket.io/issues/3916 --- lib/namespace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/namespace.ts b/lib/namespace.ts index 86ee06ad8b..e4bcfc5d20 100644 --- a/lib/namespace.ts +++ b/lib/namespace.ts @@ -307,7 +307,7 @@ export class Namespace< * * @private */ - _onServerSideEmit(args: [eventName: string, ...args: any[]]) { + _onServerSideEmit(args: [string, ...any[]]) { super.emitUntyped.apply(this, args); }