mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-16 18:20:50 +00:00
Add libp2p-kad -> randomWalk
This commit is contained in:
parent
65a25cd433
commit
0dca6f6f09
6
types/libp2p-kad-dht/index.d.ts
vendored
6
types/libp2p-kad-dht/index.d.ts
vendored
@ -4,6 +4,12 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare class LibP2pKadDht {
|
||||
readonly isStarted: boolean;
|
||||
|
||||
randomWalk: {
|
||||
start (queries?: number, period?: number, maxTimeout?: number): void;
|
||||
stop (): void;
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'libp2p-kad-dht' {
|
||||
|
2
types/libp2p/index.d.ts
vendored
2
types/libp2p/index.d.ts
vendored
@ -63,6 +63,8 @@ declare namespace LibP2p {
|
||||
}
|
||||
|
||||
declare class LibP2p {
|
||||
readonly _dht: LibP2pKadDht;
|
||||
|
||||
constructor (options: LibP2p.Options);
|
||||
|
||||
dial (peerInfo: PeerInfo, cb: (error: Error | null) => any): void;
|
||||
|
Loading…
x
Reference in New Issue
Block a user