Skip to content

Commit

Permalink
Fixed missing Client type
Browse files Browse the repository at this point in the history
  • Loading branch information
gnought committed Sep 2, 2019
1 parent 27d7ab3 commit 756a2a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/typescript/typings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const broker = Server({

callback(null, sub)
},
authorizeForward: (client, packet: IPublishPacket) => {
authorizeForward: (client: Client, packet: IPublishPacket) => {
if (packet.topic === 'aaaa' && client.id === 'I should not see this') {
return null
// also works with return undefined
Expand Down

0 comments on commit 756a2a9

Please sign in to comment.