UNPKG

libp2p

Version:

JavaScript implementation of libp2p, a modular peer to peer network stack

12 lines 432 B
import type { PeerId } from '@libp2p/interface'; import type { Multiaddr } from '@multiformats/multiaddr'; export interface PeerAddress { peerId?: PeerId; multiaddrs: Multiaddr[]; } /** * Extracts a PeerId and/or multiaddr from the passed PeerId or Multiaddr or an * array of Multiaddrs */ export declare function getPeerAddress(peer: PeerId | Multiaddr | Multiaddr[]): PeerAddress; //# sourceMappingURL=get-peer.d.ts.map