From b4e76882833d12866099ab4ba9afb3943919c712 Mon Sep 17 00:00:00 2001 From: Hans Klunder Date: Fri, 13 May 2022 16:49:55 +0200 Subject: [PATCH] fix(types): remove superfluous ClientId type definition (#743) --- types/packet.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/packet.d.ts b/types/packet.d.ts index 3822d0f0..8f13b75a 100644 --- a/types/packet.d.ts +++ b/types/packet.d.ts @@ -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' }