Skip to content

Commit

Permalink
fix: export api types from module root
Browse files Browse the repository at this point in the history
To enable importing the types for API operations without having to
guess the internal module path, export the various types from the
api definitions.
  • Loading branch information
achingbrain committed Apr 19, 2024
1 parent 4b067e2 commit 0bc61f5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,23 @@ export async function * readURLContent (url: string, options?: HTTPOptions): Asy

yield * response.iterator()
}

export * from './bitswap/index.js'
export * from './block/index.js'
export * from './bootstrap/index.js'
export * from './config/index.js'
export * from './dag/index.js'
export * from './dht/index.js'
export * from './diag/index.js'
export * from './files/index.js'
export * from './key/index.js'
export * from './log/index.js'
export * from './name/index.js'
export * from './object/index.js'
export * from './pin/index.js'
export * from './pubsub/index.js'
export * from './refs/index.js'
export * from './repo/index.js'
export * from './routing/index.js'
export * from './stats/index.js'
export * from './swarm/index.js'

0 comments on commit 0bc61f5

Please sign in to comment.