mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 09:22:41 +00:00
fix error because original types are invalid
This commit is contained in:
parent
153f51ae5a
commit
d01d6f428a
@ -70,6 +70,9 @@ export class Noise implements INoiseConnection {
|
|||||||
const wrappedConnection = Wrap(
|
const wrappedConnection = Wrap(
|
||||||
connection,
|
connection,
|
||||||
{
|
{
|
||||||
|
// wrong types in repo
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
lengthEncoder: uint16BEEncode,
|
lengthEncoder: uint16BEEncode,
|
||||||
lengthDecoder: uint16BEDecode,
|
lengthDecoder: uint16BEDecode,
|
||||||
maxDataLength: NOISE_MSG_MAX_LENGTH_BYTES
|
maxDataLength: NOISE_MSG_MAX_LENGTH_BYTES
|
||||||
@ -101,6 +104,9 @@ export class Noise implements INoiseConnection {
|
|||||||
const wrappedConnection = Wrap(
|
const wrappedConnection = Wrap(
|
||||||
connection,
|
connection,
|
||||||
{
|
{
|
||||||
|
// wrong types in repo
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
|
// @ts-ignore
|
||||||
lengthEncoder: uint16BEEncode,
|
lengthEncoder: uint16BEEncode,
|
||||||
lengthDecoder: uint16BEDecode,
|
lengthDecoder: uint16BEDecode,
|
||||||
maxDataLength: NOISE_MSG_MAX_LENGTH_BYTES
|
maxDataLength: NOISE_MSG_MAX_LENGTH_BYTES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user