Skip to content

Commit 11a5b35

Browse files
authored
fix IPublishPacket type definition
mqttjs#73
1 parent 2ac6d1b commit 11a5b35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ export interface IConnectPacket extends IPacket {
6363

6464
export interface IPublishPacket extends IPacket {
6565
cmd: 'publish'
66-
qos: QoS
67-
dup: boolean
68-
retain: boolean
6966
topic: string
70-
payload: string | Buffer
67+
payload?: string | Buffer
68+
qos?: QoS
69+
dup?: boolean
70+
retain?: boolean
7171
properties?: {
7272
payloadFormatIndicator?: boolean,
7373
messageExpiryInterval?: number,

0 commit comments

Comments
 (0)