From: Chris Duncan Date: Sat, 23 Nov 2024 09:06:37 +0000 (-0800) Subject: Ignore further typescript errors for now. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=2889c2312509bbf74d90a99d58841219a89d4cb8;p=libnemo.git Ignore further typescript errors for now. --- diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index a866b40..fe633b7 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -1,6 +1,6 @@ // SPDX-FileCopyrightText: 2024 Chris Duncan // SPDX-License-Identifier: GPL-3.0-or-later - +//@ts-nocheck import blake2b from 'blake2b' (function(nacl) { @@ -1897,7 +1897,7 @@ import blake2b from 'blake2b' scalarmult(p, q, s); } - function crypto_sign_keypair(pk, sk, seeded) { + function crypto_sign_keypair(pk, sk, seeded?) { var d = new Uint8Array(64); var p = [gf(), gf(), gf(), gf()]; var i; @@ -2142,9 +2142,9 @@ import blake2b from 'blake2b' if (sk.length !== crypto_box_SECRETKEYBYTES) throw new Error('bad secret key size'); } - function checkArrayTypes() { - for (var i = 0; i < arguments.length; i++) { - if (!(arguments[i] instanceof Uint8Array)) + function checkArrayTypes(...args) { + for (var i = 0; i < args.length; i++) { + if (!(args[i] instanceof Uint8Array)) throw new TypeError('unexpected type, use Uint8Array'); } }