This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
[Types] IPFS.create() options uses Libp2pConfig instead of Libp2pOptions #3640
Closed
Description
Ref: ceramicnetwork/js-ceramic#1194 (comment)
Sooo .. it looks like what's going on here is that ipfs-core is pulling in Libp2pConfig
when it should be pulling in Libp2pOptions
because Libp2pConfig
is used for the config
property inside Libp2pOptions
. So in ceramicnetwork/js-ceramic#1194 I was having to pull up the elements in the libp2p.config
object into libp2p
to satisfy this condition. I think this should just be:
import type { Libp2pOptions } from 'libp2p'