Commit 396a9d2 1 parent eb961a5 commit 396a9d2 Copy full SHA for 396a9d2
File tree 22 files changed +23
-22
lines changed
22 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 23
23
"typesVersions" : {
24
24
"*" : {
25
25
"*" : [
26
- " dist/*"
26
+ " dist/*" ,
27
+ " dist/*/index"
27
28
]
28
29
}
29
30
},
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const AbortController = require('native-abort-controller')
10
10
11
11
module . exports = configure ( ( api ) => {
12
12
/**
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')> }
14
14
*/
15
15
async function * addAll ( source , options = { } ) {
16
16
const progressFn = options . progress
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = (options) => {
11
11
const all = addAll ( options )
12
12
return configure ( ( ) => {
13
13
/**
14
- * @type {import('.').Implements<import('ipfs-core/src/components/add')> }
14
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/add')> }
15
15
*/
16
16
async function add ( input , options = { } ) {
17
17
// @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')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/bitswap/unwant')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bitswap/unwant')> }
10
10
*/
11
11
async function unwant ( cid , options = { } ) {
12
12
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')
7
7
8
8
module . exports = configure ( api => {
9
9
/**
10
- * @type {import('..').Implements<import('ipfs-core/src/components/block/get')> }
10
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/get')> }
11
11
*/
12
12
async function get ( cid , options = { } ) {
13
13
// @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')
11
11
12
12
module . exports = configure ( api => {
13
13
/**
14
- * @type {import('..').Implements<import('ipfs-core/src/components/block/put')> }
14
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/put')> }
15
15
*/
16
16
async function put ( data , options = { } ) {
17
17
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')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/block/rm')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/rm')> }
10
10
*/
11
11
async function * rm ( cid , options = { } ) {
12
12
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')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/block/stat')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/block/stat')> }
10
10
*/
11
11
async function stat ( cid , options = { } ) {
12
12
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')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/add')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/add')> }
10
10
*/
11
11
async function add ( addr , options = { } ) {
12
12
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')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/clear')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/clear')> }
10
10
*/
11
11
async function clear ( options = { } ) {
12
12
const res = await api . post ( 'bootstrap/rm' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const Multiaddr = require('multiaddr')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/list')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/list')> }
10
10
*/
11
11
async function list ( options = { } ) {
12
12
const res = await api . post ( 'bootstrap/list' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const Multiaddr = require('multiaddr')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/reset')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/reset')> }
10
10
*/
11
11
async function reset ( options = { } ) {
12
12
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')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/bootstrap/rm')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/bootstrap/rm')> }
10
10
*/
11
11
async function rm ( addr , options = { } ) {
12
12
const res = await api . post ( 'bootstrap/rm' , {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const toUrlSearchParams = require('./lib/to-url-search-params')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('.').Implements<import('ipfs-core/src/components/cat')> }
9
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/cat')> }
10
10
*/
11
11
async function * cat ( path , options = { } ) {
12
12
const res = await api . post ( 'cat' , {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module.exports = configure((api, opts) => {
10
10
const load = loadFormat ( opts . ipld )
11
11
12
12
/**
13
- * @type {import('..').Implements<import('ipfs-core/src/components/dag/get')> }
13
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/dag/get')> }
14
14
*/
15
15
const get = async ( cid , options = { } ) => {
16
16
const resolved = await dagResolve ( cid , options )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module.exports = configure((api, opts) => {
14
14
const load = loadFormat ( opts . ipld )
15
15
16
16
/**
17
- * @type {import('..').Implements<import('ipfs-core/src/components/dag/put')> }
17
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/dag/put')> }
18
18
*/
19
19
const put = async ( dagNode , options = { } ) => {
20
20
if ( options . cid && ( options . format || options . hashAlg ) ) {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const toUrlSearchParams = require('../lib/to-url-search-params')
6
6
7
7
module . exports = configure ( api => {
8
8
/**
9
- * @type {import('..').Implements<import('ipfs-core/src/components/dag/resolve')> }
9
+ * @type {import('..').Implements<typeof import('ipfs-core/src/components/dag/resolve')> }
10
10
*/
11
11
const resolve = async ( ipfsPath , options = { } ) => {
12
12
const res = await api . post ( 'dag/resolve' , {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const toUrlSearchParams = require('./lib/to-url-search-params')
5
5
6
6
module . exports = configure ( api => {
7
7
/**
8
- * @type {import('.').Implements<import('ipfs-core/src/components/dns')> }
8
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/dns')> }
9
9
*/
10
10
const dns = async ( domain , options = { } ) => {
11
11
const res = await api . post ( 'dns' , {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const map = require('it-map')
8
8
9
9
module . exports = configure ( api => {
10
10
/**
11
- * @type {import('.').Implements<import('ipfs-core/src/components/get')> }
11
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/get')> }
12
12
*/
13
13
async function * get ( path , options = { } ) {
14
14
const res = await api . post ( 'get' , {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const toUrlSearchParams = require('./lib/to-url-search-params')
7
7
8
8
module . exports = configure ( api => {
9
9
/**
10
- * @type {import('.').Implements<import('ipfs-core/src/components/id')> }
10
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/id')> }
11
11
*/
12
12
async function id ( options = { } ) {
13
13
const res = await api . post ( 'id' , {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const toUrlSearchParams = require('./lib/to-url-search-params')
5
5
6
6
module . exports = configure ( api => {
7
7
/**
8
- * @type {import('.').Implements<import('ipfs-core/src/components/resolve')> }
8
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/resolve')> }
9
9
*/
10
10
async function resolve ( path , options = { } ) {
11
11
const res = await api . post ( 'resolve' , {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const pkg = require('../package.json')
7
7
8
8
module . exports = configure ( api => {
9
9
/**
10
- * @type {import('.').Implements<import('ipfs-core/src/components/version')> }
10
+ * @type {import('.').Implements<typeof import('ipfs-core/src/components/version')> }
11
11
*/
12
12
async function version ( options = { } ) {
13
13
const res = await api . post ( 'version' , {
You can’t perform that action at this time.
0 commit comments