Skip to content

Commit

Permalink
fix(typings): make auth property public (#1455)
Browse files Browse the repository at this point in the history
Related: #1453
  • Loading branch information
theoludwig authored and darrachequesne committed Mar 31, 2021
1 parent 48f573f commit c150223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface SocketOptions {
/**
* the authentication payload sent when connecting to the Namespace
*/
auth: object | ((cb: (data: object) => void) => void);
auth: { [key: string]: any } | ((cb: (data: object) => void) => void);
}

/**
Expand Down Expand Up @@ -53,11 +53,11 @@ export class Socket<
public connected: boolean;
public disconnected: boolean;

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

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

private ids: number = 0;
private acks: object = {};
Expand Down

0 comments on commit c150223

Please sign in to comment.