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.
require('ipfs-core') in ipfs package causes invalid typedef genration. #3358
Closed
Description
We had to workaround the fact that following line:
js-ipfs/packages/ipfs/src/index.js
Line 4 in 16ecc74
produces dist/src/index.d.ts
like
declare const IPFS: typeof import("ipfs-core/src");
Which then TS seems to fail to resolve, by changing require path to ipfs-core/src
(see #3356)
We should figure out what is going on there and find a proper fix for that workaround.