From 917c247248a0e7bc67533c27ac83050ab5a2df13 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 2 Dec 2024 10:46:26 -0800 Subject: [PATCH] Explicitly specify return typings from entropy getters. --- src/lib/entropy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. -- 2.34.1