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

Commit 7d9ec16

Browse files
authored
fix: remove extra deps (#239)
All types needed for the example can be found in the `ipfs-core` package.
1 parent 2ad14aa commit 7d9ec16

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/types-use-ipfs-from-typed-js/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
"ipfs-core": "^0.14.0"
1212
},
1313
"devDependencies": {
14-
"multiformats": "^9.4.1",
15-
"ipfs-core-types": "^0.10.0",
1614
"typescript": "^4.5.5"
1715
}
1816
}

examples/types-use-ipfs-from-typed-js/src/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const { create } = require('ipfs-core')
2+
23
/**
3-
* @typedef {import('ipfs-core-types').IPFS} IPFS
4-
* @typedef {import('multiformats/cid').CID} CID
4+
* @typedef {import('ipfs-core').IPFS} IPFS
5+
* @typedef {import('ipfs-core').CID} CID
56
*/
67

78
async function main () {

0 commit comments

Comments
 (0)