From: Chris Duncan Date: Mon, 2 Dec 2024 18:46:26 +0000 (-0800) Subject: Explicitly specify return typings from entropy getters. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=917c247248a0e7bc67533c27ac83050ab5a2df13;p=libnemo.git Explicitly specify return typings from entropy getters. --- diff --git a/src/lib/entropy.ts b/src/lib/entropy.ts index da51f0f..0af2955 100644 --- a/src/lib/entropy.ts +++ b/src/lib/entropy.ts @@ -23,10 +23,10 @@ export class Entropy { #bytes: Uint8Array #hex: string - get bits () { return this.#bits } - get buffer () { return this.#buffer } - get bytes () { return this.#bytes } - get hex () { return this.#hex } + get bits (): string { return this.#bits } + get buffer (): ArrayBuffer { return this.#buffer } + get bytes (): Uint8Array { return this.#bytes } + get hex (): string { return this.#hex } /** * Generate 256 bits of entropy.