Skip to content

Commit

Permalink
fix IPublishPacket type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1tecat-nya committed Feb 4, 2020
1 parent 2ac6d1b commit 11a5b35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export interface IConnectPacket extends IPacket {

export interface IPublishPacket extends IPacket {
cmd: 'publish'
qos: QoS
dup: boolean
retain: boolean
topic: string
payload: string | Buffer
payload?: string | Buffer
qos?: QoS
dup?: boolean
retain?: boolean
properties?: {
payloadFormatIndicator?: boolean,
messageExpiryInterval?: number,
Expand Down

0 comments on commit 11a5b35

Please sign in to comment.