Skip to content

Commit 0cb6ac9

Browse files
committedMay 17, 2021
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: #3916
1 parent a2cf248 commit 0cb6ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/namespace.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export class Namespace<
307307
*
308308
* @private
309309
*/
310-
_onServerSideEmit(args: [eventName: string, ...args: any[]]) {
310+
_onServerSideEmit(args: [string, ...any[]]) {
311311
super.emitUntyped.apply(this, args);
312312
}
313313

0 commit comments

Comments
 (0)
Please sign in to comment.