From 9c76cd94137014e0d6849cb465db2e47c9ce52b4 Mon Sep 17 00:00:00 2001 From: Pavel Murygin Date: Tue, 4 Oct 2022 23:53:28 +0400 Subject: [PATCH] make things work --- src/connection-manager/index.ts | 1 + src/insecure/index.ts | 1 + src/libp2p.ts | 1 + tsconfig.json | 3 +-- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/connection-manager/index.ts b/src/connection-manager/index.ts index c3d0de88..75675b15 100644 --- a/src/connection-manager/index.ts +++ b/src/connection-manager/index.ts @@ -142,6 +142,7 @@ export interface ConnectionManagerEvents { /** * Responsible for managing known connections. */ +// @ts-expect-error export class DefaultConnectionManager extends EventEmitter implements ConnectionManager, Startable, Initializable { private components = new Components() private readonly opts: Required diff --git a/src/insecure/index.ts b/src/insecure/index.ts index d7734156..8c78d44c 100644 --- a/src/insecure/index.ts +++ b/src/insecure/index.ts @@ -100,6 +100,7 @@ export class Plaintext implements ConnectionEncrypter { return await encrypt(localId, conn, remoteId) } + // @ts-expect-error async secureOutbound (localId: PeerId, conn: Duplex, remoteId: PeerId): Promise { return await encrypt(localId, conn, remoteId) } diff --git a/src/libp2p.ts b/src/libp2p.ts index 433300f8..7f832168 100644 --- a/src/libp2p.ts +++ b/src/libp2p.ts @@ -133,6 +133,7 @@ export class Libp2pNode extends EventEmitter implements Libp2p { this.components.setDialer(new DefaultDialer(this.components, init.connectionManager)) // Create the Connection Manager + // @ts-expect-error this.connectionManager = this.components.setConnectionManager(new DefaultConnectionManager(init.connectionManager)) // Create the Registrar diff --git a/tsconfig.json b/tsconfig.json index fe4fd056..f53b4669 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,7 @@ "outDir": "dist" }, "include": [ - "src", - "test" + "src" ], "exclude": [ "src/circuit/pb/index.js",