We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48b4b4 commit afc067bCopy full SHA for afc067b
types/lib/client.d.ts
@@ -68,7 +68,7 @@ export interface ISubscriptionMap {
68
69
export declare type OnConnectCallback = (packet: IConnackPacket) => void
70
export declare type OnDisconnectCallback = (packet: IDisconnectPacket) => void
71
-export declare type ClientSubscribeCallback = (err: Error, granted: ISubscriptionGrant[]) => void
+export declare type ClientSubscribeCallback = (err: Error | null, granted: ISubscriptionGrant[]) => void
72
export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
73
export declare type OnPacketCallback = (packet: Packet) => void
74
export declare type OnCloseCallback = () => void
0 commit comments