]> zoso.dev Git - libnemo.git/commitdiff
Import typing for blake.
authorChris Duncan <chris@zoso.dev>
Fri, 29 Nov 2024 10:25:05 +0000 (02:25 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 29 Nov 2024 10:25:05 +0000 (02:25 -0800)
src/lib/workers/nano-nacl.ts

index c0571ebabbd7efe4b24469c9e08d522d986e36eb..9901722ef811692233582b431ff3028bb5682d33 100644 (file)
@@ -15,7 +15,9 @@
 // See for details: https://docs.nano.org/integration-guides/the-basics/\r
 // Original source commit: https://github.com/dchest/tweetnacl-js/blob/71df1d6a1d78236ca3e9f6c788786e21f5a651a6/nacl-fast.js\r
 \r
-async function NanoNaCl (Blake2b) {\r
+import type { Blake2b } from '../blake2b.js'\r
+\r
+async function NanoNaCl (Blake2b: Blake2b) {\r
        /**\r
        * Listens for messages from a calling function.\r
        */\r