Skip to content
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
@rvagg

Description

@rvagg

Ref: ceramicnetwork/js-ceramic#1194 (comment)

import type { Libp2pConfig as Libp2pOptions } from 'libp2p'

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'

Metadata

Metadata

Labels

need/triageNeeds initial labeling and prioritization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions