Skip to content

Commit afc067b

Browse files
authored
fix(types): missing null declaration for error in subscription callback (#1589)
1 parent b48b4b4 commit afc067b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/lib/client.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export interface ISubscriptionMap {
6868

6969
export declare type OnConnectCallback = (packet: IConnackPacket) => void
7070
export declare type OnDisconnectCallback = (packet: IDisconnectPacket) => void
71-
export declare type ClientSubscribeCallback = (err: Error, granted: ISubscriptionGrant[]) => void
71+
export declare type ClientSubscribeCallback = (err: Error | null, granted: ISubscriptionGrant[]) => void
7272
export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
7373
export declare type OnPacketCallback = (packet: Packet) => void
7474
export declare type OnCloseCallback = () => void

0 commit comments

Comments
 (0)