From d64b0d5246408c1b18e464deaaf60ab5ea9b9b85 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 4 Feb 2022 16:33:32 +0000 Subject: [PATCH] fix: remove extra deps All types needed for the example can be found in the `ipfs-core` package. --- examples/types-use-ipfs-from-typed-js/package.json | 2 -- examples/types-use-ipfs-from-typed-js/src/main.js | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/types-use-ipfs-from-typed-js/package.json b/examples/types-use-ipfs-from-typed-js/package.json index be800679..0c1d1eb6 100644 --- a/examples/types-use-ipfs-from-typed-js/package.json +++ b/examples/types-use-ipfs-from-typed-js/package.json @@ -11,8 +11,6 @@ "ipfs-core": "^0.14.0" }, "devDependencies": { - "multiformats": "^9.4.1", - "ipfs-core-types": "^0.10.0", "typescript": "^4.5.5" } } diff --git a/examples/types-use-ipfs-from-typed-js/src/main.js b/examples/types-use-ipfs-from-typed-js/src/main.js index 0ea2af3a..2222b4ff 100644 --- a/examples/types-use-ipfs-from-typed-js/src/main.js +++ b/examples/types-use-ipfs-from-typed-js/src/main.js @@ -1,7 +1,8 @@ const { create } = require('ipfs-core') + /** - * @typedef {import('ipfs-core-types').IPFS} IPFS - * @typedef {import('multiformats/cid').CID} CID + * @typedef {import('ipfs-core').IPFS} IPFS + * @typedef {import('ipfs-core').CID} CID */ async function main () {