Skip to content

Commit c150223

Browse files
theoludwigdarrachequesne
authored andcommitted
fix(typings): make auth property public (#1455)
Related: #1453
1 parent 48f573f commit c150223

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/socket.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface SocketOptions {
1515
/**
1616
* the authentication payload sent when connecting to the Namespace
1717
*/
18-
auth: object | ((cb: (data: object) => void) => void);
18+
auth: { [key: string]: any } | ((cb: (data: object) => void) => void);
1919
}
2020

2121
/**
@@ -53,11 +53,11 @@ export class Socket<
5353
public connected: boolean;
5454
public disconnected: boolean;
5555

56+
public auth: { [key: string]: any } | ((cb: (data: object) => void) => void);
5657
public receiveBuffer: Array<ReadonlyArray<any>> = [];
5758
public sendBuffer: Array<Packet> = [];
5859

5960
private readonly nsp: string;
60-
private readonly auth: object | ((cb: (data: object) => void) => void);
6161

6262
private ids: number = 0;
6363
private acks: object = {};

0 commit comments

Comments
 (0)