From d01d6f428a3032bcf7a2a8a0901d456e83670fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Fri, 19 Jun 2020 13:32:32 +0200 Subject: [PATCH] fix error because original types are invalid --- src/noise.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/noise.ts b/src/noise.ts index 24d94b6..390450a 100644 --- a/src/noise.ts +++ b/src/noise.ts @@ -70,6 +70,9 @@ export class Noise implements INoiseConnection { const wrappedConnection = Wrap( connection, { + // wrong types in repo + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore lengthEncoder: uint16BEEncode, lengthDecoder: uint16BEDecode, maxDataLength: NOISE_MSG_MAX_LENGTH_BYTES @@ -101,6 +104,9 @@ export class Noise implements INoiseConnection { const wrappedConnection = Wrap( connection, { + // wrong types in repo + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore lengthEncoder: uint16BEEncode, lengthDecoder: uint16BEDecode, maxDataLength: NOISE_MSG_MAX_LENGTH_BYTES