This repository was archived by the owner on Jun 26, 2023. It is now read-only.
File tree 4 files changed +8
-11
lines changed
packages/libp2p-interfaces/src
4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
- import type { PeerId } from '../peer-id'
1
+ import type { PeerId } from '../peer-id/index.js '
2
2
import type { CID } from 'multiformats/cid'
3
- import type { PeerData } from '../peer-data'
4
- import type { AbortOptions , Startable } from '../index'
5
- import type { PeerDiscovery } from '../peer-discovery'
3
+ import type { PeerData } from '../peer-data/index.js '
4
+ import type { AbortOptions , Startable } from '../index.js '
5
+ import type { PeerDiscovery } from '../peer-discovery/index.js '
6
6
7
7
/**
8
8
* The types of events emitted during DHT queries
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { PeerId } from '../peer-id/index.js'
2
2
import type { Multiaddr } from '@multiformats/multiaddr'
3
3
import type { EventEmitter } from '../index.js'
4
4
import type { Envelope } from '../record/index.js'
5
+ import type { PeerData } from '../peer-data/index.js'
5
6
6
7
export interface Address {
7
8
/**
@@ -182,10 +183,6 @@ export interface ProtoBook extends Book<string[]> {
182
183
remove : ( peerId : PeerId , protocols : string [ ] ) => Promise < void >
183
184
}
184
185
185
- export interface PeerData {
186
- peerId : PeerId
187
- }
188
-
189
186
export interface PeerProtocolsChangeData {
190
187
peerId : PeerId
191
188
protocols : string [ ]
Original file line number Diff line number Diff line change 1
- import type { PeerId } from '../peer-id'
1
+ import type { PeerId } from '../peer-id/index.js '
2
2
import type { Pushable } from 'it-pushable'
3
- import type { Registrar } from '../registrar'
3
+ import type { Registrar } from '../registrar/index.js '
4
4
import type { EventEmitter , Startable } from '../index.js'
5
5
6
6
/**
Original file line number Diff line number Diff line change 1
- import type { PeerId } from '../peer-id'
1
+ import type { PeerId } from '../peer-id/index.js '
2
2
3
3
export interface GetValueResult {
4
4
from : PeerId
You can’t perform that action at this time.
0 commit comments