Skip to content

Commit 1f2cf7f

Browse files
authored
fix(types): allow will payload to be string (#147)
1 parent 0d4144d commit 1f2cf7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface IConnectPacket extends IPacket {
4949
password?: Buffer
5050
will?: {
5151
topic: string
52-
payload: Buffer
52+
payload: Buffer | string
5353
qos?: QoS
5454
retain?: boolean
5555
properties?: {

0 commit comments

Comments
 (0)