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] SwarmAPI.connect requires a Multiaddr but libp2p.dial allows PeerId|Multiaddr|string #3638

Closed
@rvagg

Description

@rvagg

Ref: ceramicnetwork/js-ceramic#1194

Similar to #3637

connect: (addr: Multiaddr, options?: AbortOptions & OptionExtension) => Promise<void>

But this passes straight through to libp2p.dial() which is more permissive:

https://github.com/libp2p/js-libp2p/blob/5372f7af2f8f1653384504af15efea8ba776534b/src/index.js#L454-L465

Should we be similarly lax here?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions