File tree Expand file tree Collapse file tree 22 files changed +23
-22
lines changed Expand file tree Collapse file tree 22 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 2323 "typesVersions" : {
2424 "*" : {
2525 "*" : [
26- " dist/*"
26+ " dist/*" ,
27+ " dist/*/index"
2728 ]
2829 }
2930 },
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const AbortController = require('native-abort-controller')
1010
1111module . exports = configure ( ( api ) => {
1212 /**
13- * @type {import('.').Implements<import('ipfs-core/src/components/add-all/index')> }
13+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/add-all/index')> }
1414 */
1515 async function * addAll ( source , options = { } ) {
1616 const progressFn = options . progress
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = (options) => {
1111 const all = addAll ( options )
1212 return configure ( ( ) => {
1313 /**
14- * @type {import('.').Implements<import('ipfs-core/src/components/add')> }
14+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/add')> }
1515 */
1616 async function add ( input , options = { } ) {
1717 // @ts -ignore - last may return undefind if source is empty
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const toUrlSearchParams = require('../lib/to-url-search-params')
66
77module . exports = configure ( api => {
88 /**
9- * @type {import('..').Implements<import('ipfs-core/src/components/bitswap/unwant')> }
9+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bitswap/unwant')> }
1010 */
1111 async function unwant ( cid , options = { } ) {
1212 const res = await api . post ( 'bitswap/unwant' , {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const toUrlSearchParams = require('../lib/to-url-search-params')
77
88module . exports = configure ( api => {
99 /**
10- * @type {import('..').Implements<import('ipfs-core/src/components/block/get')> }
10+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/get')> }
1111 */
1212 async function get ( cid , options = { } ) {
1313 // @ts -ignore - CID|string seems to confuse typedef
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const AbortController = require('native-abort-controller')
1111
1212module . exports = configure ( api => {
1313 /**
14- * @type {import('..').Implements<import('ipfs-core/src/components/block/put')> }
14+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/put')> }
1515 */
1616 async function put ( data , options = { } ) {
1717 if ( Block . isBlock ( data ) ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const toUrlSearchParams = require('../lib/to-url-search-params')
66
77module . exports = configure ( api => {
88 /**
9- * @type {import('..').Implements<import('ipfs-core/src/components/block/rm')> }
9+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/rm')> }
1010 */
1111 async function * rm ( cid , options = { } ) {
1212 if ( ! Array . isArray ( cid ) ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const toUrlSearchParams = require('../lib/to-url-search-params')
66
77module . exports = configure ( api => {
88 /**
9- * @type {import('..').Implements<import('ipfs-core/src/components/block/stat')> }
9+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/stat')> }
1010 */
1111 async function stat ( cid , options = { } ) {
1212 const res = await api . post ( 'block/stat' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const Multiaddr = require('multiaddr')
66
77module . exports = configure ( api => {
88 /**
9- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/add')> }
9+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/add')> }
1010 */
1111 async function add ( addr , options = { } ) {
1212 const res = await api . post ( 'bootstrap/add' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const Multiaddr = require('multiaddr')
66
77module . exports = configure ( api => {
88 /**
9- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/clear')> }
9+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/clear')> }
1010 */
1111 async function clear ( options = { } ) {
1212 const res = await api . post ( 'bootstrap/rm' , {
You can’t perform that action at this time.
0 commit comments