Skip to content

Commit

Permalink
fix(typings): ensure compatibility with TypeScript 3.x
Browse files Browse the repository at this point in the history
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
  • Loading branch information
darrachequesne committed May 17, 2021
1 parent a2cf248 commit 0cb6ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class Namespace<
*
* @private
*/
_onServerSideEmit(args: [eventName: string, ...args: any[]]) {
_onServerSideEmit(args: [string, ...any[]]) {
super.emitUntyped.apply(this, args);
}

Expand Down

0 comments on commit 0cb6ac9

Please sign in to comment.