Skip to content

Commit

Permalink
fix(types): remove superfluous ClientId type definition (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme authored May 13, 2022
1 parent f3b4b16 commit b4e7688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/packet.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { AedesPacket } from 'aedes-packet'
import { IConnackPacket, IConnectPacket, IPingreqPacket, IPublishPacket, IPubrelPacket, ISubscribePacket, ISubscription, IUnsubscribePacket } from 'mqtt-packet'
import { Client } from './client'

export type ClientId = string
export type SubscribePacket = ISubscribePacket & { cmd: 'subscribe' }
export type UnsubscribePacket = IUnsubscribePacket & { cmd: 'unsubscribe' }
export type Subscription = ISubscription & { clientId?: ClientId }
export type Subscription = ISubscription & { clientId?: Client['id'] }
export type Subscriptions = { subscriptions: Subscription[] }

export type PublishPacket = IPublishPacket & { cmd: 'publish' }
Expand Down

0 comments on commit b4e7688

Please sign in to comment.