17 lines
458 B
TypeScript
Raw Normal View History

2018-06-21 15:23:22 +02:00
// Type definitions for libp2p-secio 0.10.0
// Project: https://github.com/libp2p/js-libp2p-secio
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
2018-06-24 10:46:14 +02:00
/// <reference types="peer-id"/>
2018-06-21 15:23:22 +02:00
2018-06-24 10:37:00 +02:00
declare type LibP2pSecio = {
2018-06-21 15:23:22 +02:00
encrypt (localId: PeerId, conn: any, remoteId: PeerId, callback: () => any): void
}
2018-06-24 10:37:00 +02:00
declare module 'libp2p-secio' {
2018-06-22 15:43:18 +02:00
const secio: LibP2pSecio;
export default secio;
}