Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a6bcad5

Browse files
achingbrainGozala
andauthored
fix: types path for ipfs-core (#3356)
For some reason you need to add `/src` after `ipfs-core` otherwise the import in the generated `index.d.ts` has the wrong path. Must fix properly before the next release. Co-authored-by: Irakli Gozalishvili <[email protected]>
1 parent b07f944 commit a6bcad5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/ipfs/src/index.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
/* eslint-disable jsdoc/valid-types */
21
'use strict'
32

4-
const IPFS = require('ipfs-core')
5-
6-
/**
7-
* @typedef { ReturnType<typeof IPFS['create']> extends Promise<infer U>
8-
* ? U : never } IPFS
9-
*/
3+
// TODO: Fix TS issue that prevents use of require('ipfs-core') instead
4+
// https://github.com/ipfs/js-ipfs/issues/3358
5+
const IPFS = require('ipfs-core/src')
106

117
module.exports = IPFS

0 commit comments

Comments
 (0)