]> git.codecow.com Git - libnemo.git/commitdiff
Specify backing buffer
authorChris Duncan <chris@zoso.dev>
Sun, 3 Aug 2025 02:17:50 +0000 (19:17 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 3 Aug 2025 02:17:50 +0000 (19:17 -0700)
src/lib/blake2b.ts

index dc3a98c331a993a0fb10a4815f12bd713825bee8..47c1297d40347548b3827ed7bb9f9045b52f697a 100644 (file)
@@ -256,7 +256,7 @@ export class Blake2b {
                }
        }
 
-       update (input: Uint8Array): Blake2b {
+       update (input: Uint8Array<ArrayBuffer>): Blake2b {
                if (input instanceof ArrayBuffer) {
                        input = new Uint8Array(input)
                }