mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-04-01 01:41:06 +00:00
22 lines
476 B
TypeScript
22 lines
476 B
TypeScript
// Type definitions for libp2p-spdy 0.12.1
|
|
// Project: https://github.com/libp2p/js-libp2p-spdy
|
|
// Definitions by: Jaco Greeff <https://github.com/jacogr>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module 'libp2p-spdy' {
|
|
type Muxer = {};
|
|
|
|
export type LibP2pSpdy = {
|
|
(conn: any, isListener: boolean): Muxer;
|
|
|
|
dialer (conn: any): Muxer;
|
|
listener (conn: any): Muxer;
|
|
|
|
muticodec: string;
|
|
}
|
|
|
|
const spdy: LibP2pSpdy;
|
|
|
|
export default spdy;
|
|
}
|