libp2p-ts/libp2p-mplex/index.d.ts
2018-06-21 15:15:18 +02:00

18 lines
428 B
TypeScript

// 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
type Muxer = {};
declare type LibP2pMplex = {
(conn: any, isListener: boolean): Muxer;
dialer (conn: any): Muxer;
listener (conn: any): Muxer;
muticodec: string;
}
export default LibP2pMplex;