Skip to content

Commit

Permalink
fix: using correct signature for individual query results
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Harley committed Nov 9, 2017
1 parent b1c2a77 commit a82872c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class Client extends EventEmitter {
}
}

export function deepstream (url: string, options: any): Client {
export function deepstream (url: string, options?: any): Client {
return new Client(url, options)
}

Expand Down
2 changes: 1 addition & 1 deletion src/presence/presence-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const response: string = PRESENCE_ACTION.QUERY_ALL.toString()
const allSubscribe: string = PRESENCE_ACTION.SUBSCRIBE_ALL.toString()

export type QueryResult = string[]
export type IndividualQueryResult = { user: string, online: boolean }[]
export type IndividualQueryResult = { [username: string]: boolean }
export type SubscribeCallback = (user: string, online: boolean) => void

function validateQueryArguments (rest: any[]) : { users: string[] | null, callback: null | ((error: { reason: EVENT }, data?: QueryResult | IndividualQueryResult) => void) } {
Expand Down

0 comments on commit a82872c

Please sign in to comment.