Exports a Libp2p type for modules to use as a type argument.
Libp2p
import type { Libp2p } from '@libp2p/interface'function doSomethingWithLibp2p (node: Libp2p) { // ...} Copy
import type { Libp2p } from '@libp2p/interface'function doSomethingWithLibp2p (node: Libp2p) { // ...}
Exports a
Libp2p
type for modules to use as a type argument.Example