Skip to content

Commit 7266128

Browse files
authored
fix: export api types from module root (#223)
To enable importing the types for API operations without having to guess the internal module path, export the various types from the api definitions.
1 parent d0c2820 commit 7266128

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,3 +515,23 @@ export async function * readURLContent (url: string, options?: HTTPOptions): Asy
515515

516516
yield * response.iterator()
517517
}
518+
519+
export * from './bitswap/index.js'
520+
export * from './block/index.js'
521+
export * from './bootstrap/index.js'
522+
export * from './config/index.js'
523+
export * from './dag/index.js'
524+
export * from './dht/index.js'
525+
export * from './diag/index.js'
526+
export * from './files/index.js'
527+
export * from './key/index.js'
528+
export * from './log/index.js'
529+
export * from './name/index.js'
530+
export * from './object/index.js'
531+
export * from './pin/index.js'
532+
export * from './pubsub/index.js'
533+
export * from './refs/index.js'
534+
export * from './repo/index.js'
535+
export * from './routing/index.js'
536+
export * from './stats/index.js'
537+
export * from './swarm/index.js'

0 commit comments

Comments
 (0)