Skip to content

Commit 2203585

Browse files
committed
reverse out changes to client.d.ts
dealt with in separate PR
1 parent 063aa31 commit 2203585

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/lib/client.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
IClientReconnectOptions
99
} from './client-options'
1010
import { Store } from './store'
11-
import { Packet, IConnectPacket, IPublishPacket, QoS } from 'mqtt-packet'
11+
import { Packet, QoS } from 'mqtt-packet'
1212

1313
export interface ISubscriptionGrant {
1414
/**
@@ -66,9 +66,9 @@ export interface ISubscriptionMap {
6666
}
6767
}
6868

69-
export declare type OnConnectCallback = (packet: IConnectPacket) => void
69+
export declare type OnConnectCallback = (packet: Packet) => void
7070
export declare type ClientSubscribeCallback = (err: Error, granted: ISubscriptionGrant[]) => void
71-
export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
71+
export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: Packet) => void
7272
export declare type OnPacketCallback = (packet: Packet) => void
7373
export declare type OnErrorCallback = (error: Error) => void
7474
export declare type PacketCallback = (error?: Error, packet?: Packet) => any

0 commit comments

Comments
 (0)