From 0960b68f9b612640318931e971d7a715f0945bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jimmy=20Bj=C3=B6rklund?= <9413089+JimmyBjorklund@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:11:55 +0200 Subject: [PATCH] fix(types): import type error (#1705) --- src/lib/shared.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/shared.ts b/src/lib/shared.ts index 7a901077e..e6ebba439 100644 --- a/src/lib/shared.ts +++ b/src/lib/shared.ts @@ -1,5 +1,5 @@ import type { Packet } from 'mqtt-packet' -import type internal from 'stream' +import type { Duplex } from 'stream' import type MqttClient from './client' import type { IClientOptions } from './client' @@ -9,7 +9,7 @@ export type GenericCallback = (error?: Error, result?: T) => void export type VoidCallback = () => void -export type IStream = internal.Duplex +export type IStream = Duplex export type StreamBuilder = ( client: MqttClient,