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-http-server HttpApi requires JSIPFS type #3639
Closed
Description
Ref: ceramicnetwork/js-ceramic#1194
a418a52 introduced this beast to the HttpApi
constructor: @typedef {IPFS & { ipld: IPLD, libp2p: libp2p }} JSIPFS
. How do we expect users to get one of these things. The two places we use HttpApi
in the test don't seem to have types coverage. Is a @ts-ignore
just how it has to be for now or is there an alternative that wraps up this little beasty from an existing ipfs
instance?