2018-06-21 14:38:41 +02:00
|
|
|
// Type definitions for interface-connection 0.3.2
|
|
|
|
// Project: https://github.com/libp2p/interface-connection
|
|
|
|
// Definitions by: Jaco Greeff <https://github.com/jacogr>
|
|
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
|
2018-06-22 15:43:18 +02:00
|
|
|
// @ts-ignore
|
|
|
|
import PeerInfo from 'peer-info';
|
2018-06-21 14:38:41 +02:00
|
|
|
|
2018-06-22 15:43:18 +02:00
|
|
|
declare module 'interface-connection' {
|
|
|
|
interface Connection {
|
2018-06-21 14:38:41 +02:00
|
|
|
getPeerInfo (cb: (error: Error | null, peerInfo?: PeerInfo) => any): void;
|
|
|
|
}
|
|
|
|
|
2018-06-21 15:49:53 +02:00
|
|
|
export = Connection;
|
2018-06-22 15:43:18 +02:00
|
|
|
}
|