diff --git a/packages/libp2p/src/index.ts b/packages/libp2p/src/index.ts index aeb24cd382..f3839989cb 100644 --- a/packages/libp2p/src/index.ts +++ b/packages/libp2p/src/index.ts @@ -16,7 +16,6 @@ import { createLibp2pNode } from './libp2p.js' import type { AddressManagerInit } from './address-manager/index.js' -import type { Components } from './components.js' import type { ConnectionManagerInit } from './connection-manager/index.js' import type { TransportManagerInit } from './transport-manager.js' import type { Libp2p, ServiceMap, RecursivePartial, ComponentLogger, NodeInfo, ConnectionProtector, ConnectionEncrypter, ConnectionGater, ContentRouting, Metrics, PeerDiscovery, PeerId, PeerRouting, StreamMuxerFactory, Transport, PrivateKey } from '@libp2p/interface' @@ -24,6 +23,8 @@ import type { PersistentPeerStoreInit } from '@libp2p/peer-store' import type { DNS } from '@multiformats/dns' import type { Datastore } from 'interface-datastore' +export type { Components } from './components.js' + export type ServiceFactoryMap = Record> = { [Property in keyof T]: (components: Components) => T[Property] }