Skip to content

Commit

Permalink
Merge pull request #352 from thoov/fix-types
Browse files Browse the repository at this point in the history
fix SocketIO types
  • Loading branch information
Atrue authored Jan 25, 2022
2 parents cf185df + 40fb939 commit f51f272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ declare module 'mock-socket' {
}

const SocketIO: {
(url: string, protocol: string | string[]): SocketIOClient;
connect(url: string, protocol: string | string[]): SocketIOClient;
(url: string, protocol?: string | string[]): SocketIOClient;
connect(url: string, protocol?: string | string[]): SocketIOClient;
}

interface CloseOptions {
Expand Down

0 comments on commit f51f272

Please sign in to comment.