From: Chris Duncan Date: Sat, 23 Nov 2024 09:02:22 +0000 (-0800) Subject: Start resolving typescript errors. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=305b3402a8614ee043181944c2bd8dd3d4e0a12f;p=libnemo.git Start resolving typescript errors. --- diff --git a/src/lib/workers/nano25519.ts b/src/lib/workers/nano25519.ts index d194a28..a866b40 100644 --- a/src/lib/workers/nano25519.ts +++ b/src/lib/workers/nano25519.ts @@ -18,14 +18,14 @@ import blake2b from 'blake2b' // See for details: https://docs.nano.org/integration-guides/the-basics/ // Original source commit: https://github.com/dchest/tweetnacl-js/blob/71df1d6a1d78236ca3e9f6c788786e21f5a651a6/nacl-fast.js - var gf = function(init) { + var gf = function(init?) { var i, r = new Float64Array(16); if (init) for (i = 0; i < init.length; i++) r[i] = init[i]; return r; }; // Pluggable, initialized in high-level API below. - var randombytes = function(/* x, n */) { throw new Error('no PRNG'); }; + var randombytes = function(x, n) { throw new Error('no PRNG'); }; var _0 = new Uint8Array(16); var _9 = new Uint8Array(32); _9[0] = 9;