1
0
mirror of https://github.com/fluencelabs/libp2p-ts synced 2025-03-17 18:50:50 +00:00

22 lines
482 B
TypeScript
Raw Normal View History

2018-06-21 15:15:18 +02:00
// Type definitions for libp2p-mplex 0.8.0
// Project: https://github.com/libp2p/js-libp2p-mplex
// Definitions by: Jaco Greeff <https://github.com/jacogr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
2018-06-22 15:43:18 +02:00
declare module 'libp2p-mplex' {
2018-06-21 15:15:18 +02:00
type Muxer = {};
2018-06-22 15:43:18 +02:00
export type LibP2pMplex = {
2018-06-21 15:15:18 +02:00
(conn: any, isListener: boolean): Muxer;
dialer (conn: any): Muxer;
listener (conn: any): Muxer;
muticodec: string;
}
2018-06-22 15:43:18 +02:00
const mplex: LibP2pMplex;
export default mplex;
}