mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-31 01:11:04 +00:00
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
// 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
|
|
|
|
declare module 'interface-connection' {
|
|
// @ts-ignore
|
|
import PeerInfo from 'peer-info';
|
|
|
|
export interface Connection {
|
|
getPeerInfo (cb: (error: Error | null, peerInfo?: PeerInfo) => any): void;
|
|
}
|
|
}
|