]> git.codecow.com Git - libnemo.git/commitdiff
Specify buffer type for entropy.
authorChris Duncan <chris@zoso.dev>
Tue, 29 Jul 2025 08:04:25 +0000 (01:04 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 29 Jul 2025 08:04:25 +0000 (01:04 -0700)
src/lib/entropy.ts

index a99825bdc389368d39307d08f7e4f54bc5bed123..afdc128d2d3c9420e5c1f3447c04647ff70a51a9 100644 (file)
@@ -21,7 +21,7 @@ export class Entropy {
 
        get bits (): string { return bytes.toBin(this.#bytes) }
        get buffer (): ArrayBuffer { return this.#bytes.buffer }
-       get bytes (): Uint8Array { return this.#bytes }
+       get bytes (): Uint8Array<ArrayBuffer> { return this.#bytes }
        get hex (): string { return bytes.toHex(this.#bytes) }
 
        private constructor (bytes: Uint8Array<ArrayBuffer>) {