From 22136d5d8a87fa131de279dd7fa92790b87c62bd Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 6 Feb 2025 07:51:07 +0100 Subject: [PATCH] fix: use IncomingStreamData type from interface module This type is duplicated in `@libp2p/interface` and `@libp2p/interface-internal` so use the one from the interface module. --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d9b0445b..4bc86120 100644 --- a/src/index.ts +++ b/src/index.ts @@ -75,9 +75,10 @@ import type { Logger, ComponentLogger, Topology, - PrivateKey + PrivateKey, + IncomingStreamData } from '@libp2p/interface' -import type { ConnectionManager, IncomingStreamData, Registrar } from '@libp2p/interface-internal' +import type { ConnectionManager, Registrar } from '@libp2p/interface-internal' import type { Multiaddr } from '@multiformats/multiaddr' import type { Uint8ArrayList } from 'uint8arraylist'