From 574f30ead47d4b47636df4752917dafae9fb27ad Mon Sep 17 00:00:00 2001 From: Marin Petrunic Date: Sun, 31 Jul 2022 10:54:47 +0200 Subject: [PATCH] fix: type errors --- src/circuit/v1/stream-handler.ts | 1 + src/circuit/v2/stream-handler.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/circuit/v1/stream-handler.ts b/src/circuit/v1/stream-handler.ts index 56a04ed0eb..e8b2416c0a 100644 --- a/src/circuit/v1/stream-handler.ts +++ b/src/circuit/v1/stream-handler.ts @@ -30,6 +30,7 @@ export class StreamHandlerV1 { this.stream = stream this.shake = handshake(this.stream) + // @ts-expect-error some type incompatibilities this.decoder = lp.decode.fromReader(this.shake.reader, { maxDataLength: maxLength }) } diff --git a/src/circuit/v2/stream-handler.ts b/src/circuit/v2/stream-handler.ts index ff1e6d1d9b..d6e4c7f415 100644 --- a/src/circuit/v2/stream-handler.ts +++ b/src/circuit/v2/stream-handler.ts @@ -28,6 +28,7 @@ export class StreamHandlerV2 { this.stream = stream this.shake = handshake(this.stream) + // @ts-expect-error some type incompatibilities this.decoder = lp.decode.fromReader(this.shake.reader, { maxDataLength: maxLength }) }