Skip to content

Commit

Permalink
fix(typings): ensure compatibility with TypeScript 3.x (socketio#4259)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 25, 2022
1 parent a65401e commit 45ca724
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/socket.ts
Expand Up @@ -107,7 +107,10 @@ export interface Handshake {
auth: { [key: string]: any };
}

export type Event = [eventName: string, ...args: any[]];
/**
* `[eventName, ...args]`
*/
export type Event = [string, ...any[]];

export class Socket<
ListenEvents extends EventsMap = DefaultEventsMap,
Expand Down

0 comments on commit 45ca724

Please sign in to comment.