From 2889c2312509bbf74d90a99d58841219a89d4cb8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 23 Nov 2024 01:06:37 -0800 Subject: [PATCH] Ignore further typescript errors for now. --- src/lib/workers/nano25519.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'); } } -- 2.34.1