Skip to content

Commit

Permalink
fix(types): missing null declaration for error in subscription callba…
Browse files Browse the repository at this point in the history
…ck (#1589)
  • Loading branch information
dachrillz committed Jun 23, 2023
1 parent b48b4b4 commit afc067b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/lib/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface ISubscriptionMap {

export declare type OnConnectCallback = (packet: IConnackPacket) => void
export declare type OnDisconnectCallback = (packet: IDisconnectPacket) => void
export declare type ClientSubscribeCallback = (err: Error, granted: ISubscriptionGrant[]) => void
export declare type ClientSubscribeCallback = (err: Error | null, granted: ISubscriptionGrant[]) => void
export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
export declare type OnPacketCallback = (packet: Packet) => void
export declare type OnCloseCallback = () => void
Expand Down

0 comments on commit afc067b

Please sign in to comment.