Skip to content

Commit 2f6a239

Browse files
authored
fix: export DHT record class (#2168)
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.
1 parent 7534ae7 commit 2f6a239

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/kad-dht/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import type { Datastore } from 'interface-datastore'
1313
import type { CID } from 'multiformats/cid'
1414
import type { ProgressOptions, ProgressEvent } from 'progress-events'
1515

16+
export { Libp2pRecord as Record } from './record/index.js'
17+
1618
/**
1719
* The types of events emitted during DHT queries
1820
*/

0 commit comments

Comments
 (0)