Cleanup failing tests for libp2p-bootstrap

This commit is contained in:
Jaco Greeff 2018-08-23 14:44:32 +02:00
parent 9b75a2c084
commit 005b641d7f
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ declare namespace LibP2pBootstrap {
type Events = 'peer';
}
declare class LibP2pRailing {
declare class LibP2pBootstrap {
constructor (options: LibP2pBootstrap.Options);
on (event: LibP2pBootstrap.Events, cb: (peerInfo: PeerInfo) => any): void;

View File

@ -12,5 +12,5 @@
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": ["index.d.ts", "bn.js-tests.ts"]
"files": ["index.d.ts", "libp2p-bootstrap-tests.ts"]
}

View File

@ -3,12 +3,12 @@
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="libp2p-bootstrap"/>
/// <reference types="interface-connection"/>
/// <reference types="interface-transport"/>
/// <reference types="libp2p-kad-dht"/>
/// <reference types="libp2p-mdns"/>
/// <reference types="libp2p-mplex"/>
/// <reference types="libp2p-railing"/>
/// <reference types="libp2p-secio"/>
/// <reference types="libp2p-spdy"/>
/// <reference types="peer-book"/>
@ -48,7 +48,7 @@ declare namespace LibP2p {
connEncryption: Array<LibP2pSecio>,
streamMuxer: Array<LibP2pMplex | LibP2pSpdy>,
dht?: typeof LibP2pKadDht,
peerDiscovery: Array<LibP2pRailing | LibP2pMdns>,
peerDiscovery: Array<LibP2pBootstrap | LibP2pMdns>,
transport: LibP2pTransport[]
};