Skip to content

Commit

Permalink
fix(typings): make auth property public (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunrise30 committed Mar 31, 2021
1 parent c1af953 commit 4a3a56f
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 4a3a56f

Please sign in to comment.