Skip to content

Commit

Permalink
fix: export DHT record class (#2168)
Browse files Browse the repository at this point in the history
This needs to be exported for reuse by things that create DHT records
such as IPNS.

Exported as `Record` because it's a KAD-DHT specific record and `KAD-DHT`
in a class name is redundant within the scope of the KAD-DHT module.
  • Loading branch information
achingbrain authored Oct 25, 2023
1 parent 7534ae7 commit 2f6a239
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/kad-dht/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import type { Datastore } from 'interface-datastore'
import type { CID } from 'multiformats/cid'
import type { ProgressOptions, ProgressEvent } from 'progress-events'

export { Libp2pRecord as Record } from './record/index.js'

/**
* The types of events emitted during DHT queries
*/
Expand Down

0 comments on commit 2f6a239

Please sign in to comment.